-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
186 lines (178 loc) · 6.65 KB
/
docker-compose.dev.yml
File metadata and controls
186 lines (178 loc) · 6.65 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
services:
app:
build:
context: .
dockerfile: Dockerfile
target: web-development
args:
USER_ID: '${PLS_USER_ID:-33}'
GROUP_ID: '${PLS_GROUP_ID:-33}'
environment:
SERVICE: 'web'
SSL_MODE: 'mixed'
CACHE_MODULES: '${CACHE_MODULES:-false}'
CACHE_CONFIG: '${CACHE_CONFIG:-false}'
CACHE_ROUTES: '${CACHE_ROUTES:-false}'
CACHE_VIEWS: '${CACHE_VIEWS:-false}'
CACHE_EVENTS: '${CACHE_EVENTS:-false}'
CACHE_ICONS: '${CACHE_ICONS:-false}'
CACHE_FILAMENT_COMPONENTS: '${CACHE_FILAMENT_COMPONENTS:-false}'
PHP_MEMORY_LIMIT: '${PHP_MEMORY_LIMIT:-512M}'
labels:
- 'traefik.enable=true'
- "traefik.http.routers.advisingapp-app.rule=Host(`advisingapp.local`) || HostRegexp(`^[a-z0-9]+\\.advisingapp\\.local$`)"
- 'traefik.http.routers.advisingapp-app.entrypoints=websecure'
- 'traefik.http.routers.advisingapp-app.tls=true'
- 'traefik.http.services.advisingapp-app.loadbalancer.server.port=8443'
- 'traefik.http.services.advisingapp-app.loadbalancer.server.scheme=https'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/var/www/html'
# - '../common:/var/www/common'
# - '../filament-tiptap-editor:/var/www/filament-tiptap-editor'
networks:
cgbs-development:
ipv4_address: 172.16.1.3
aliases:
- advisingapp.local
dns:
- 172.16.1.1
depends_on:
- advisingapp-redis
- advisingapp-mailpit
- advisingapp-pgsql
worker:
build:
context: .
dockerfile: Dockerfile
target: worker-development
args:
TOTAL_QUEUE_WORKERS: '${TOTAL_QUEUE_WORKERS:-1}'
MULTIPLE_DEVELOPMENT_QUEUES: '${MULTIPLE_DEVELOPMENT_QUEUES:-false}'
USER_ID: '${PLS_USER_ID:-33}'
GROUP_ID: '${PLS_GROUP_ID:-33}'
environment:
SERVICE: 'worker'
CACHE_MODULES: false
CACHE_CONFIG: false
CACHE_ROUTES: false
CACHE_VIEWS: false
CACHE_EVENTS: false
CACHE_ICONS: false
CACHE_FILAMENT_COMPONENTS: false
SQS_QUEUE: '${SQS_QUEUE:-default}'
LANDLORD_SQS_QUEUE: '${LANDLORD_SQS_QUEUE:-landlord}'
OUTBOUND_COMMUNICATION_QUEUE: '${OUTBOUND_COMMUNICATION_QUEUE:-outbound-communication}'
AUDIT_QUEUE_QUEUE: '${AUDIT_QUEUE_QUEUE:-audit}'
MEETING_CENTER_QUEUE: '${MEETING_CENTER_QUEUE:-meeting-center}'
IMPORT_EXPORT_QUEUE: '${IMPORT_EXPORT_QUEUE:-import-export}'
CREATE_STORAGE_SYMLINK: '${WORKER_CREATE_STORAGE_SYMLINK:-false}'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/var/www/html'
# - '../common:/var/www/common'
# - '../filament-tiptap-editor:/var/www/filament-tiptap-editor'
networks:
- cgbs-development
depends_on:
- advisingapp-redis
- advisingapp-mailpit
- advisingapp-pgsql
scheduler:
build:
context: .
dockerfile: Dockerfile
target: scheduler-development
args:
USER_ID: '${PLS_USER_ID:-33}'
GROUP_ID: '${PLS_GROUP_ID:-33}'
environment:
SERVICE: 'scheduler'
CACHE_MODULES: false
CACHE_CONFIG: false
CACHE_ROUTES: false
CACHE_VIEWS: false
CACHE_EVENTS: false
CACHE_ICONS: false
CACHE_FILAMENT_COMPONENTS: false
CREATE_STORAGE_SYMLINK: '${SCHEDULER_CREATE_STORAGE_SYMLINK:-false}'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/var/www/html'
# - '../common:/var/www/common'
# - '../filament-tiptap-editor:/var/www/filament-tiptap-editor'
networks:
- cgbs-development
depends_on:
- advisingapp-redis
- advisingapp-mailpit
- advisingapp-pgsql
advisingapp-redis:
image: 'redis:7.4.9-alpine@sha256:6ab0b6e7381779332f97b8ca76193e45b0756f38d4c0dcda72dbb3c32061ab99'
ports:
- '${FORWARD_REDIS_PORT:-63791}:6379'
volumes:
- 'advisingapp-redis:/data'
networks:
- cgbs-development
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
retries: 3
timeout: 5s
advisingapp-mailpit:
image: 'axllent/mailpit:latest'
networks:
- cgbs-development
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.advisingapp-mailpit.rule=Host(`mail.tools.advisingapp.local`)'
- 'traefik.http.routers.advisingapp-mailpit.entrypoints=websecure'
- 'traefik.http.routers.advisingapp-mailpit.tls=true'
- 'traefik.http.services.advisingapp-mailpit.loadbalancer.server.port=8025'
- 'traefik.http.services.advisingapp-mailpit.loadbalancer.server.scheme=http'
advisingapp-pgsql:
image: 'postgres:15'
command: postgres -c max_locks_per_transaction=256
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'advisingapp-pgsql:/var/lib/postgresql/data'
- './docker/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql'
networks:
- cgbs-development
healthcheck:
test: ['CMD', 'pg_isready', '-q', '-d', '${DB_DATABASE}', '-U', '${DB_USERNAME}']
retries: 3
timeout: 5s
local-cli:
profiles:
- local-cli
build:
context: .
dockerfile: Dockerfile
target: cli-local-tooling
args:
USER_ID: '${PLS_USER_ID:-33}'
GROUP_ID: '${PLS_GROUP_ID:-33}'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/var/www/html'
networks:
- cgbs-development
networks:
cgbs-development:
external: true
volumes:
advisingapp-redis:
driver: local
advisingapp-pgsql:
driver: local