-
Notifications
You must be signed in to change notification settings - Fork 1
/
prod-docker-compose.yaml
108 lines (79 loc) · 3.07 KB
/
prod-docker-compose.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.3'
networks:
live_network:
external: true
internal_network:
external: false
services:
test-via-web:
container_name: "test-via-web"
image: conorjf/via-web:latest
restart: unless-stopped
networks:
- "live_network"
volumes:
- /var/log/instance_logs/test-via:/var/log
env_file:
- ./config/via.env
command: ["make", "test_run"]
labels:
- "traefik.enable=true"
- "traefik.http.services.test-via-web-web.loadbalancer.server.port=8080"
- "traefik.docker.network=live_network"
- "traefik.http.routers.test-via-web-websecure.rule=Host(`test-via.randombits.host`)"
- "traefik.http.routers.test-via-web-websecure.entrypoints=websecure"
- "traefik.http.routers.test-via-web-websecure.tls=true"
- "traefik.http.routers.test-via-web-websecure.tls.certresolver=le"
- "traefik.http.routers.test-via-web-web.rule=Host(`test-via.randombits.host`)"
- "traefik.http.routers.test-via-web-web.entrypoints=web"
- "traefik.http.routers.test-via-web-web.middlewares=test-via-web-http-redirect"
- "traefik.http.middlewares.test-via-web-http-redirect.redirectscheme.scheme=https"
- "com.centurylinklabs.watchtower.scope=test-via"
test-via-api:
container_name: "test-via-api"
image: robertlucey/via-api:latest
restart: unless-stopped
networks:
- "live_network"
- "internal_network"
volumes:
- /var/log/instance_logs/test-via-api:/var/log
- ./data:/opt
env_file:
- ./config/via.env
depends_on:
- test-via-mongodb
labels:
- "traefik.enable=true"
- "traefik.http.services.test-via-api-web.loadbalancer.server.port=8000"
- "traefik.docker.network=live_network"
- "traefik.http.routers.test-via-api-websecure.rule=Host(`test-via-api.randombits.host`)"
- "traefik.http.routers.test-via-api-websecure.entrypoints=websecure"
- "traefik.http.routers.test-via-api-websecure.tls=true"
- "traefik.http.routers.test-via-api-websecure.tls.certresolver=le"
- "traefik.http.routers.test-via-api-web.rule=Host(`test-via-api.randombits.host`)"
- "traefik.http.routers.test-via-api-web.entrypoints=web"
- "traefik.http.routers.test-via-api-web.middlewares=test-via-api-http-redirect"
- "traefik.http.middlewares.test-via-api-http-redirect.redirectscheme.scheme=https"
- "com.centurylinklabs.watchtower.scope=test-via"
test-via-mongodb:
container_name: "test-via-mongodb"
image: mongo:latest
restart: unless-stopped
env_file:
- ./config/via.env
networks:
- "internal_network"
volumes:
- ./data/db:/data/db
test-via-watchtower:
container_name: "test-via-watchtower"
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/log/instance_logs/test-via-watchtower:/var/log
- /var/run/docker.sock:/var/run/docker.sock
command: test-via-api test-via-web --interval 120 --scope test-via
labels:
- "traefik.enable=false"
- "com.centurylinklabs.watchtower.scope=test-via"