-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.29 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
version: '2'
services:
api:
image: repo.cfhn.it/mycfhn/presence-ms/presence-ms
restart: always
networks:
- default
- traefik_net
- prometheus_net
labels:
traefik.enable: "true"
traefik.docker.network: "traefik_net"
traefik.frontend.rule: "Host: presence.my.cfhn.it"
traefik.port: "8080"
prometheus.enable: "true"
prometheus.path: "/actuator/prometheus"
prometheus.port: "8080"
environment:
JAVA_OPTS: "-Dcfhn.unifi.url=https://192.168.255.2:8443 -Dcfhn.unifi.password=${UNIFI_PASSWORD} -Dspring.data.mongodb.uri=mongodb://db:27017 -Dspring.profiles.active=cfhnAuth"
volumes:
- /etc/timezone:/etc/timezone:ro
db:
image: mongo
restart: always
volumes:
- presencedata:/data/db
db-admin:
image: mongo-express
restart: always
networks:
- default
- traefik_net
environment:
ME_CONFIG_MONGODB_SERVER: db
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: ${ADMIN_PASSWORD}
labels:
traefik.enable: "true"
traefik.docker.network: "traefik_net"
traefik.frontend.rule: "Host: presenceadmin.my.cfhn.it"
traefik.port: "8081"
networks:
traefik_net:
external: true
prometheus_net:
external: true
volumes:
presencedata: