-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-deploy.yml
More file actions
71 lines (68 loc) · 1.84 KB
/
docker-compose-deploy.yml
File metadata and controls
71 lines (68 loc) · 1.84 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
version: "3.2"
services:
api:
env_file: .deploy.env
hostname: dac-api
image: ghcr.io/antoniolago/datacenter-automated-controller-api:${IMAGE_TAG}
privileged: true
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "5000:5000"
- "7:7/udp"
- "9:9/udp"
volumes:
- "/opt/datacenter-automated-controller/nut/:/nut/"
- "/opt/datacenter-automated-controller/api/app/db:/api/app/db/"
- "/dev:/dev"
networks:
- datacenter-automated-controller
depends_on:
- redis
frontend:
image: ghcr.io/antoniolago/datacenter-automated-controller-front:${IMAGE_TAG}
ports:
- 8090:80
depends_on:
- api
nut:
env_file: .deploy.env
image: ghcr.io/antoniolago/datacenter-automated-controller-nut:${IMAGE_TAG}
privileged: true
ports:
- "3493:3493"
volumes:
- "/opt/datacenter-automated-controller/nut/:/etc/nut/"
- "/opt/datacenter-automated-controller/shared:/shared"
devices:
- "/dev:/dev" #YOUR UPS's USB PORT
networks:
- datacenter-automated-controller
depends_on:
- api
nut-launcher:
restart: on-failure
env_file: .deploy.env
image: ghcr.io/antoniolago/datacenter-automated-controller-nut-launcher:${IMAGE_TAG}
depends_on:
- api
- nut
networks:
- datacenter-automated-controller
redis:
image: redis
volumes:
- "/opt/datacenter-automated-controller/redis:/data"
ports:
- "6379:${REDIS_PORT}"
networks:
- datacenter-automated-controller
rule-applier:
image: ghcr.io/antoniolago/datacenter-automated-controller-rule-applier:${IMAGE_TAG}
volumes:
- "/opt/datacenter-automated-controller/rule-applier/:/app"
networks:
- datacenter-automated-controller
networks:
datacenter-automated-controller:
driver: bridge