This repository has been archived by the owner on Aug 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (87 loc) · 2.97 KB
/
docker-compose.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
version: '2'
services:
traefik:
image: traefik:alpine
container_name: traefik
command: --api --docker --docker.domain=alarmmonitor.local # Enables the web UI and tells Træfik to listen to docker
ports:
- "80:80"
- "443:443"
- "8080:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
- ./traefik/traefik.toml:/traefik.toml
networks:
- proxy
labels:
- "traefik.frontend.rule=Host:traefik.alarmmonitor.local"
- "traefik.port=8080"
restart: unless-stopped
###############################################
# Content from alarmDisplayApp/Dockerfile.cross
###############################################
alarmdisplay-app:
image: t08094a/alarmdisplay-app:latest
container_name: alarmdisplay-app
# hostname: app
# domainname: alarmdisplay.local
ports:
- "9001:80"
env_file: .env
# networks:
# - network_frontend
restart: unless-stopped
depends_on:
- datacenter-app
################################################
# Content from dataCenter/src/app/docker/app.yml
################################################
datacenter-app:
image: t08094a/alarmdisplay-datacenter:latest
container_name: datacenter-app
# hostname: datacenter
# domainname: alarmdisplay.local
env_file: .env
environment:
- START_SLEEP=10 # gives time for the database to boot before the application
#- MONGO_URL=mongodb://datacenter-mongodb/alarmdisplay-datacenter
ports:
- "9002:3000"
# networks:
# - network_backend
# - network_frontend
restart: unless-stopped
depends_on:
- datacenter-mongodb
datacenter-mongodb:
extends:
file: dataCenter/docker/mongo.yml
service: datacenter-mongodb
container_name: datacenter-mongodb
volumes:
- datacenter-mongodb_volume:/data/db/
# networks:
# - network_backend
restart: unless-stopped
# datacenter-mongodb-express:
# extends:
# file: dataCenter/docker/mongoexpress.yml
# service: datacenter-mongodb-express
# container_name: datacenter-mongodb-express
# hostname: alarmdisplay-mongodb-express
# domainname: alarmdisplay-mongodb-express.local
# # environment:
# ports:
# - "9003:8081"
# networks:
# - network_backend
# restart: unless-stopped
# depends_on:
# - datacenter-mongodb
volumes:
datacenter-mongodb_volume:
networks:
proxy:
# external: true
network_backend:
network_frontend: