generated from ConductionNL/nl-design-skeleton-gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (60 loc) · 1.38 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.4"
services:
# pwa:
# &pwa
# image: ${CONTAINER_REGISTRY_BASE}/${CONTAINER_PROJECT_NAME}:${APP_BUILD}
# build: pwa
# depends_on:
# - php
# ports:
# - "81:80"
gateway-frontend:
&gateway-frontend
image: ghcr.io/conductionnl/commonground-gateway-frontend:dev
depends_on:
- php
ports:
- "83:80"
php:
&php
image: ghcr.io/conductionnl/commonground-gateway-php:dev
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
ports:
- "82:80"
api:
&nginx
image: ghcr.io/conductionnl/commonground-gateway-nginx:latest
depends_on:
- php
ports:
- "80:80"
environment:
- NGINX_HOST=php
- NGINX_ENV=${APP_ENV}
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"
redis:
image: redis:4-alpine
volumes:
db-data: {}
db-mysql: {}