generated from ConductionNL/api-connector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (52 loc) · 1.16 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
version: "3.4"
services:
pwa:
&pwa
image: ghcr.io/conductionnl/verhuizen-pwa:dev
build: pwa
depends_on:
- php
ports:
- "81:3000"
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
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: {}