-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (71 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
79 lines (71 loc) · 1.68 KB
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
version: "3.7"
networks:
web:
external: true
internal:
external: false
services:
bandersnatch:
image: "supercmmetry/bandersnatch:latest"
restart: always
depends_on:
- db
- traefik
container_name: bandersnatch
env_file: ./.env
environment:
- DB_URI=${DB_URI}
- DEBUG=${DEBUG}
- NEXUS_FILE=${NEXUS_FILE}
labels:
- traefik.backend=bandersnatch
- traefik.frontend.rule=Host:playscenario.dscvit.com;PathPrefix:/api/bandersnatch
- traefik.docker.network=web
- traefik.port=1729
volumes:
- ./nexus:/nexus
networks:
- web
- internal
db:
image: "postgres:12.2-alpine"
#restart: always
container_name: db
ports:
- "5432:5432"
env_file: ./.env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
labels:
- traefik.enable=false
volumes:
- ./db:/var/lib/postgresql
networks:
- internal
traefik:
image: "traefik:1.7.2-alpine"
restart: always
container_name: traefik
ports:
- "80:80"
- "443:443"
labels:
- traefik.basic.frontend.rule=Host:playscenario.dscvit.com
- traefik.port=8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./ops/proxy/traefik.toml:/traefik.toml
- ./ops/proxy/acme.json:/acme.json
networks:
- web
watchtower:
image: "v2tec/watchtower"
container_name: "watchtower"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/config.json:/config.json
command: --interval 30tch
labels:
- traefik.enable=false