engelsystem/docker/docker-compose.yml

56 lines
1.1 KiB
YAML
Raw Normal View History

---
version: "3.6"
2018-02-08 22:56:44 +01:00
services:
2019-10-14 23:36:26 +02:00
es_nginx:
image: es_nginx
2018-02-08 22:56:44 +01:00
build:
context: ..
2019-10-14 23:36:26 +02:00
dockerfile: docker/nginx/Dockerfile
2018-02-08 22:56:44 +01:00
ports:
- 5000:80
networks:
- fpm
- internet
depends_on:
2019-10-14 23:36:26 +02:00
- es_php_fpm
es_php_fpm:
image: es_php_fpm
build:
context: ..
2019-10-14 23:36:26 +02:00
dockerfile: docker/Dockerfile
2018-02-08 22:56:44 +01:00
environment:
2019-10-14 23:36:26 +02:00
MYSQL_HOST: es_database
2018-02-08 22:56:44 +01:00
MYSQL_USER: engelsystem
MYSQL_PASSWORD: engelsystem
MYSQL_DATABASE: engelsystem
# some optional env vars and their defaults can be seen in the env file
# for exact information have a look at config/config.default.php
env_file: deployment.env
networks:
- database
- fpm
- internet
depends_on:
2019-10-14 23:36:26 +02:00
- es_database
es_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:
database:
internal: true
fpm:
internal: true
internet: