-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 929 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 929 Bytes
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
version: "3.7"
services:
app:
image: "${IMAGE}"
user: "1000:1000"
env_file:
- .env
environment:
WEB_DOCUMENT_ROOT: /app/public
labels:
- "${APP_ID}.app"
healthcheck:
test: curl -f http://localhost || exit 1
worker:
image: "${IMAGE}"
user: "1000:1000"
env_file:
- .env
labels:
- "${APP_ID}.worker"
entrypoint: supervisord
command: -c /app/supervisord.conf
postgres:
image: postgres:12.4
environment:
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_DATABASE}"
POSTGRES_USER: "${DB_USERNAME}"
labels:
- "${APP_ID}.postgres"
- "${APP_ID}.db"
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:6.0.8
labels:
- "${APP_ID}.redis"
volumes:
- redis:/data
volumes:
postgres:
name: "${APP_ID}-postgres"
redis:
name: "${APP_ID}-redis"