generated from ConductionNL/skeleton-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
86 lines (78 loc) · 2.26 KB
/
docker-compose-dev.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
version: "3.4"
services:
php: &php
image: ghcr.io/conductionnl/commonground-gateway-php:latest
depends_on:
- db
volumes:
- ./gateway:/srv/api/fixtures:rw,cached
- ./certs:/var/certs:rw,cached
environment:
- DATABASE_URL=postgres://api-platform:!ChangeMe!@db/api?serverVersion=10.1
# - DATABASE_URL=mysql://api-platform:!ChangeMe!@db/api?serverVersion=10.1
- AUTH_ENABLED=false
- REDIS_HOST=redis
- REDIS_PORT=6379
- APP_REPRO=example
- APP_ENV=dev
- APP_DEBUG=1
- APP_CACHE=true
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
- MAILGUN=${MAILGUN}
- CACHE_URL=mongodb://api-platform:!ChangeMe!@mongodb
ports:
- "82:80"
api: &nginx
image: ghcr.io/conductionnl/commonground-gateway-nginx:latest
depends_on:
- php
ports:
- "8080:80"
environment:
- NGINX_HOST=php
- NGINX_ENV=${APP_ENV}
# MySQL database:
# db:
# image: mysql:5.7
# environment:
# - MYSQL_ROOT_PASSWORD=example
# - MYSQL_DATABASE=api
# - MYSQL_USER=api-platform
# - MYSQL_PASSWORD=!ChangeMe!
# volumes:
# - db-mysql:/var/lib/mysql:rw
# ports:
# - "3366:3306"
# Postgres db:
db:
image: postgres:10
environment:
- POSTGRES_DB=api
- POSTGRES_USER=api-platform
- POSTGRES_PASSWORD=!ChangeMe!
volumes:
- db-data:/var/lib/postgresql/data:rw
ports:
- "5432:5432"
redis:
image: redis:4-alpine
rabbitmq:
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USERNAME}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
mongodb:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: api-platform
MONGO_INITDB_ROOT_PASSWORD: '!ChangeMe!'
ports:
- "27017:27017"
volumes:
db-data: {}
uc-data: {}
db-mysql: {}