2018-08-12 16:23:35 +02:00
|
|
|
version: "3.6"
|
2018-02-08 22:56:44 +01:00
|
|
|
services:
|
|
|
|
nginx:
|
2018-08-12 16:23:35 +02:00
|
|
|
image: engelsystem-nginx
|
2018-02-08 22:56:44 +01:00
|
|
|
build:
|
2018-08-12 16:23:35 +02:00
|
|
|
context: ..
|
|
|
|
dockerfile: contrib/nginx/Dockerfile
|
2018-02-08 22:56:44 +01:00
|
|
|
ports:
|
|
|
|
- 5000:80
|
2018-08-13 11:23:33 +02:00
|
|
|
networks:
|
|
|
|
- internal
|
2018-08-12 16:23:35 +02:00
|
|
|
depends_on:
|
|
|
|
- engelsystem
|
2018-02-08 22:56:44 +01:00
|
|
|
engelsystem:
|
2018-08-12 16:23:35 +02:00
|
|
|
image: engelsystem
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: contrib/Dockerfile
|
2018-02-08 22:56:44 +01:00
|
|
|
environment:
|
2018-08-12 16:23:35 +02:00
|
|
|
MYSQL_HOST: database
|
2018-02-08 22:56:44 +01:00
|
|
|
MYSQL_USER: engelsystem
|
|
|
|
MYSQL_PASSWORD: engelsystem
|
|
|
|
MYSQL_DATABASE: engelsystem
|
2018-08-13 11:23:33 +02:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
- database
|
2018-08-12 16:23:35 +02:00
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
database:
|
2018-02-08 22:56:44 +01:00
|
|
|
image: mariadb:latest
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: engelsystem
|
|
|
|
MYSQL_USER: engelsystem
|
|
|
|
MYSQL_PASSWORD: engelsystem
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 1
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
2018-08-13 11:23:33 +02:00
|
|
|
networks:
|
|
|
|
- database
|
2018-02-08 22:56:44 +01:00
|
|
|
volumes:
|
2018-08-12 16:23:35 +02:00
|
|
|
db: {}
|
|
|
|
static: {}
|
2018-08-13 11:23:33 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal:
|
|
|
|
database:
|