-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
111 lines (100 loc) · 7.11 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: "3.4"
services:
php: &php
image: ghcr.io/conductionnl/commonground-gateway-php:cleanup
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}
ports:
- "82:80"
api: &nginx
image: ghcr.io/conductionnl/commonground-gateway-nginx:cleanup
depends_on:
- php
ports:
- "80: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
user-component:
image: ghcr.io/conductionnl/user-component-nginx:latest
depends_on:
- user-component-php
environment:
- NGINX_HOST=user-component-php
user-component-php:
image: ghcr.io/conductionnl/user-component-php:latest
depends_on:
- user-component-postgres
volumes:
- ./user-component:/srv/api/fixtures:rw,cached
environment:
- APP_ENV=dev
- APP_APPLICATION_KEY=45c1a4b6-59d3-4a6e-86bf-88a872f35845
- APP_CACHE=true
- APP_DEBUG=0
- APP_URL=http://user-component
- APP_VERSION=V2.0
- CASE_INSENSITIVE_USERNAME=true
- DATABASE_URL=postgres://user-component:!ChangeMe!@user-component-postgres/uc?serverVersion=10.1
- PASSWORD_STRENGTH=1
- PRIVATE_KEY=LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV3QUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktvd2dnU21BZ0VBQW9JQkFRRFNQU1lacUs3cHdMTWQKd0VqSThkeTA2aVUzQUxESHFOMnBvbmJEb0tIN09KcFVpa0hkT09NVVhNYUhGOWwyb0ZBQmV1VnkrMjJlVHZTQwp3SGdFeUlkTlBEOHhnaWcrUVFlLzBEZlNIaWxGK01ZNGJYbzBUdW0wbDB1MFRDMDNqSUMvUHdiWmJkd3AyczdmClo5TVh1dzdZdnpLS2dzSTdXWWhlSGxGazlkQXc4OUg4SjVUbkY2N050YkdWRkdYTUk5ekpSejZ6N3JRUzJGMjEKcmIyanNhMU4yWkliZW5rbmFrQjdmTEk2VU1mVk5DTXBVZHdERUN6TXNTUTQ4L2dvMzdJYjhzbElGZ2NTUWcrNgp4U1JleG1BT0lBUDIxSitnVjZubGhiMGQ2V2VCcUliQ1hoYkhoY0RGc3NiVGlyTms5UElCcm1FdktGU1prdVV2Cks4Z0hzTituQWdNQkFBRUNnZ0VCQUlFZ1JaSms1R2wxalkyc1dBZnpaUmRJNkdxTDVnZjdVNG1vMjBEMEhBanMKanYxMW5WWitaaHBQa1MvUUdpU2QrZ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mb0tKbDA2SFdkVHVFYUJwR2JYR1Y3VHZjQ3dEb1hYenlYYkljT1FqCnFMeGM0RlE5dlZXazRQM0Y1dDZ6dFh3TWVYWDhZeVYwaGN4cXRaVHNsL25ZVDFvc2pKUlBlWDBRRXFXTjJKZ1QKTGFwckNwK0ZOOXI2WlRwb3EybXVwNmcxTE9HaW1md1k3VDR4elhEaUNlMk1FMi93azBuczBpZXFmeFpwQk5mMApaYitZTHBPekVIYmNlS3dqSEJxT016VlJTZy93bW9sN05VWEF5YkZUNlMwaU5EQWlVSUJ6Q2xUZDhPQ0ZlYXB6CmdwYmROaDA9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0=
user-component-postgres:
image: postgres:14-alpine
environment:
- POSTGRES_DB=uc
- POSTGRES_USER=user-component
- POSTGRES_PASSWORD=!ChangeMe!
volumes:
- uc-data:/var/lib/postgresql/data:rw
rabbitmq:
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USERNAME}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
volumes:
db-data: {}
uc-data: {}
db-mysql: {}