-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
71 lines (67 loc) · 1.89 KB
/
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
version: "3.8"
services:
api:
build:
context: .
target: api
restart: unless-stopped
networks: [currencyrates]
links:
- chromium
environment:
CHROMIUM_URL: http://chromium:9222
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3001/ || exit 1
interval: 1s
depends_on:
chromium:
condition: service_healthy
logging:
options:
max-size: "2m"
max-file: "3"
nginx:
build:
context: .
target: nginx
restart: unless-stopped
networks: [proxy, currencyrates]
depends_on:
chromium:
condition: service_healthy
api:
condition: service_healthy
logging:
options:
max-size: "2m"
max-file: "3"
labels:
traefik.enable: true
traefik.http.routers.currencytracker.entrypoints: http
traefik.http.routers.currencytracker.rule: Host(`currency.plgn.xyz`)
traefik.http.middlewares.currencytracker-https-redirect.redirectscheme.scheme: https
traefik.http.routers.currencytracker.middlewares: currencytracker-https-redirect
traefik.http.routers.currencytracker-secure.entrypoints: https
traefik.http.routers.currencytracker-secure.rule: Host(`currency.plgn.xyz`)
traefik.http.routers.currencytracker-secure.tls: true
traefik.http.routers.currencytracker-secure.service: currencytracker
traefik.http.services.currencytracker.loadbalancer.server.port: 80
traefik.docker.network: proxy
chromium:
build:
context: .
target: chromium
networks: [currencyrates]
restart: unless-stopped
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:9222/json/version || exit 1
interval: 3s
logging:
options:
max-size: "2m"
max-file: "3"
networks:
currencyrates:
external: false
proxy:
external: true