-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dokploy.yaml
40 lines (37 loc) · 1.19 KB
/
docker-compose.dokploy.yaml
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
services:
aftermath-collector:
extends:
file: docker-compose.base.yaml
service: aftermath-collector-base
restart: no
environment:
- COLLECTOR_BACKEND_URL=aftermath-service:${PRIVATE_SERVER_PORT}
networks:
- dokploy-network
aftermath-migrate:
extends:
file: docker-compose.base.yaml
service: aftermath-migrate-base
networks:
- dokploy-network
aftermath-service:
extends:
file: docker-compose.base.yaml
service: aftermath-service-base
restart: always
environment:
# the rest is imported from .env, which is going to be created by Dokploy automatically
- PORT=3000 # the port does not matter, but it needs to match Traefik labels. we set it here explicitly in order to avoid any issues
- DATABASE_PATH=/data # this is the path inside a contianer and needs to match the volume mount
expose:
- 3000
networks:
- dokploy-network
labels:
- docker-volume-backup.stop-during-backup=true # https://hub.docker.com/r/offen/docker-volume-backup
depends_on:
aftermath-migrate:
condition: service_completed_successfully
networks:
dokploy-network:
external: true