engelsystem/docker/docker-compose.yml

47 lines
866 B
YAML
Raw Normal View History

version: "3.6"
2018-02-08 22:56:44 +01:00
services:
nginx:
image: engelsystem-nginx
2018-02-08 22:56:44 +01:00
build:
context: ..
dockerfile: ""
2018-02-08 22:56:44 +01:00
ports:
- 5000:80
networks:
- internal
depends_on:
- engelsystem
2018-02-08 22:56:44 +01:00
engelsystem:
image: engelsystem
build:
context: ..
dockerfile: ""
2018-02-08 22:56:44 +01:00
environment:
MYSQL_HOST: database
2018-02-08 22:56:44 +01:00
MYSQL_USER: engelsystem
MYSQL_PASSWORD: engelsystem
MYSQL_DATABASE: engelsystem
networks:
- internal
- database
depends_on:
- database
database:
image: mariadb:10.2
2018-02-08 22:56:44 +01:00
environment:
MYSQL_DATABASE: engelsystem
MYSQL_USER: engelsystem
MYSQL_PASSWORD: engelsystem
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_INITDB_SKIP_TZINFO: "yes"
2018-02-08 22:56:44 +01:00
volumes:
- db:/var/lib/mysql
networks:
- database
2018-02-08 22:56:44 +01:00
volumes:
db: {}
networks:
internal:
database: