-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 1.92 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
services:
postgres:
container_name: rvrb2_postgres
image: postgres
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- stack.env
networks:
- external_network
labels:
- traefik.enable=true
- traefik.tcp.routers.postgres.entrypoints=postgres
- traefik.tcp.routers.postgres.rule=HostSNI(`*`)
- traefik.tcp.routers.postgres.tls=false
- traefik.tcp.services.postgres.loadbalancer.server.port=5432
- traefik.tcp.routers.postgres.service=postgres
redis:
container_name: rvrb2_redis
image: redis
restart: unless-stopped
volumes:
- redis_data:/data
networks:
- external_network
labels:
- traefik.enable=true
- traefik.tcp.routers.redis.entrypoints=redis
- traefik.tcp.routers.redis.rule=HostSNI(`*`)
- traefik.tcp.routers.redis.tls=false
- traefik.tcp.services.redis.loadbalancer.server.port=6379
- traefik.tcp.routers.redis.service=redis
mongo:
container_name: rvrb2_mongo
image: mongo
restart: unless-stopped
volumes:
- mongo_data:/data
env_file:
- stack.env
networks:
- external_network
labels:
- traefik.enable=true
- traefik.tcp.routers.mongo.entrypoints=mongo
- traefik.tcp.routers.mongo.rule=HostSNI(`*`)
- traefik.tcp.routers.mongo.tls=false
- traefik.tcp.services.mongo.loadbalancer.server.port=27017
- traefik.tcp.routers.mongo.service=mongo
whoami:
container_name: rvrb2_whoami
image: traefik/whoami
networks:
- external_network
labels:
- traefik.enable=true
- traefik.http.routers.whoami.rule=Host(`whoami.${ROOT_DOMAIN}`)
- traefik.http.routers.whoami.middlewares=jwt-plugin
- traefik.http.routers.whoami.entrypoints=websecure
volumes:
postgres_data:
redis_data:
mongo_data:
networks:
external_network:
external: true