-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.2 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
version: "3"
services:
updater:
build:
context: updater
dockerfile: ./Dockerfile
volumes:
- ./updater:/updater
- ./data:/data
- ./shared_config:/shared_config
- ./.git:/.git/:ro
- nginx_cache:/nginx_cache:rw
gunicorn:
build:
context: dash
dockerfile: ./Dockerfile
expose:
- 80
networks:
- default
volumes:
- ./dash:/dash
- ./data:/data
- ./blog:/blog
- ./shared_config:/shared_config
- ./.git:/.git/:ro
cache:
image: nginx
expose:
- 80
networks:
- default
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- nginx_cache:/nginx_cache:rw
labels:
- traefik.backend=website
- traefik.docker.network=web
- traefik.frontend.rule=Host:business-forecast-lab.com
- traefik.enable=true
- traefik.port=80
traefik:
image: traefik:alpine
ports:
- 80:80
- 443:443
networks:
- web
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./shared_config/acme.json:/acme.json
volumes:
nginx_cache:
networks:
web:
external: true