-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (113 loc) · 3.46 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3"
services:
traefik:
image: traefik:v2.3
restart: always
command:
- "--global.sendAnonymousUsage=false"
- "--providers.docker"
- "--providers.docker.exposedByDefault=false"
- "--providers.file"
- "--providers.file.directory=/etc/traefik/config/"
- "--providers.file.watch=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
- "--certificatesresolvers.letsencrypt.acme.email=${LETSENCRYPT_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/etc/acme/acme.json"
ports:
- 80:80
- 443:443
volumes:
- ./config/:/etc/traefik/config/:ro
- ./htpasswd.d/:/auth/
- ./acme/:/etc/acme/
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
web:
intern:
watchtower:
image: containrrr/watchtower:latest
restart: always
environment:
- TZ=Europe/Paris
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 30 6 * * *" --cleanup
networks:
intern:
# Sentry
redis:
image: redis
networks:
intern:
postgres:
image: postgres
environment:
POSTGRES_USER: sentry
POSTGRES_PASSWORD: sentry
POSTGRES_DB: sentry
volumes:
- db-data:/var/lib/postgresql/data
networks:
intern:
sentry:
image: sentry
links:
- redis
- postgres
ports:
- 9000:9000
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: sentry
SENTRY_REDIS_HOST: redis
labels:
- "traefik.enable=true"
- "traefik.port=9000"
- "traefik.http.middlewares.redirect.redirectscheme.scheme=https"
- "traefik.http.routers.sentry-insecure.rule=Host(`${FQDN_SENTRY}`)"
- "traefik.http.routers.sentry-insecure.middlewares=redirect"
- "traefik.http.routers.sentry.rule=Host(`${FQDN_SENTRY}`)"
- "traefik.http.routers.sentry.entrypoints=websecure"
- "traefik.http.routers.sentry.tls.certresolver=letsencrypt"
- "traefik.docker.network=web"
networks:
web:
intern:
cron:
image: sentry
links:
- redis
- postgres
command: "sentry run cron"
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: sentry
SENTRY_REDIS_HOST: redis
networks:
intern:
worker:
image: sentry
links:
- redis
- postgres
command: "sentry run worker"
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: sentry
SENTRY_REDIS_HOST: redis
networks:
intern:
networks:
web:
external: true
intern:
volumes:
db-data: {}