-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·102 lines (101 loc) · 2.32 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.2"
services:
php:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_ENV: ${APP_ENV}
XDEBUG_REMOTE_HOST: ${XDEBUG_REMOTE_HOST}
XDEBUG_REMOTE_ENABLE: ${XDEBUG_REMOTE_ENABLE}
XDEBUG_REMOTE_AUTOSTART: ${XDEBUG_REMOTE_AUTOSTART}
XDEBUG_REMOTE_CONNECT_BACK: ${XDEBUG_REMOTE_CONNECT_BACK}
XDEBUG_IDEKEY: ${XDEBUG_IDEKEY}
XDEBUG_REMOTE_PORT: ${XDEBUG_REMOTE_PORT}
XDEBUG_PROFILER_ENABLE: ${XDEBUG_PROFILER_ENABLE}
XDEBUG_PROFILER_ENABLE_TRIGGER: ${XDEBUG_PROFILER_ENABLE_TRIGGER}
volumes:
- .:/var/www/html
expose:
- 9000
environment:
- PARENT_USER_ID
- APP_ENV
- PHP_IDE_CONFIG
user: "${UID}:${GID}"
depends_on:
- db
- db_test
- redis
- rabbitmq
nginx:
image: 4xxi/nginx:flex
depends_on:
- php
ports:
- "${SERVER_HTTP_PORT}:80"
volumes:
- .:/var/www/html
- ./var/log:/var/log/nginx
db:
image: "postgres:9"
ports:
- "${DATABASE_PORT}:5432"
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
db_test:
image: "postgres:9"
ports:
- "${TEST_DATABASE_PORT}:5432"
volumes:
- db_test:/var/lib/postgresql/data
environment:
- COMPOSER_AUTH
- POSTGRES_DB=${TEST_POSTGRES_DB}
- POSTGRES_USER=${TEST_POSTGRES_USER}
- POSTGRES_PASSWORD=${TEST_POSTGRES_PASSWORD}
redis:
image: "redis:5-alpine"
environment:
- REDIS_PORT=${REDIS_PORT}
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- 6379:6379
volumes:
- "redis:/etc/redis/database/caesarapp"
rabbitmq:
image: "rabbitmq:3-management-alpine"
environment:
- RABBITMQ_DEFAULT_USER
- RABBITMQ_DEFAULT_PASS
- RABBITMQ_VHOST
ports:
- "5672:5672"
- "15672:15672"
volumes:
- "rmq:/var/lib/rabbitmq"
mailhog:
image: mailhog/mailhog
ports:
- "1080:8025"
mercure:
image: dunglas/mercure:v0.11
environment:
- MERCURE_JWT_SECRET
- CORS_ALLOW_ORIGIN
ports:
- "${MERCURE_EXTERNAL_PORT}:80"
- "443:443"
volumes:
- caddy_data:/data
- ./config/mercure:/config
volumes:
db:
db_test:
caddy_data:
redis:
rmq: