/
docker-compose.yml
67 lines (65 loc) · 1.57 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
version: '3.7'
services:
bundle:
build:
context: ./
dockerfile: docker/services/bundle/Dockerfile
environment:
APP_CODE_DIR: "${APP_CODE_DIR?err}"
APP_BUILD_DIR: "${APP_BUILD_DIR}"
APP_CACHE_DIR: '/cache'
APP_LOG_DIR: '/cushon/build/logs/symfony'
APP_ENV: "${APP_ENV}"
DB_READ_HOST: 'db'
DB_WRITE_HOST: 'db'
DB_WRITE_PORT: 3306
DB_READ_PORT: 3306
restart: unless-stopped
volumes:
- ./:/cushon
networks:
- app
nginx:
build:
context: docker/services/nginx
dockerfile: Dockerfile
environment:
APP_CODE_DIR: "${APP_CODE_DIR?err}"
NGINX_PORT: "${NGINX_PORT:-8080}"
networks:
- app
restart: unless-stopped
ports:
- "${HOST_NGINX_PORT:?err}:${NGINX_PORT:-8080}"
db:
image: mariadb:10.7.3-focal
restart: always
environment:
MYSQL_ROOT_PASSWORD: "lets_all_stay_healthy"
networks:
- app
volumes:
- db-data:/var/lib/mysql:rw
# This inserts the read and write users for the Symfony app
- ./app/data:/docker-entrypoint-initdb.d
ports:
- '33010:3306'
blackfire:
image: blackfire/blackfire:2
ports: [ "8307" ]
environment:
# Exposes BLACKFIRE_* environment variables from the host
BLACKFIRE_SERVER_ID: ~
BLACKFIRE_SERVER_TOKEN: ~
BLACKFIRE_CLIENT_ID: ~
BLACKFIRE_CLIENT_TOKEN: ~
BLACKFIRE_DISABLE_LEGACY_PORT: 'true'
networks:
- app
networks:
app:
volumes:
###> doctrine/doctrine-bundle ###
db-data:
###< doctrine/doctrine-bundle ###