forked from Turistforeningen/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.56 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
version: '2'
services:
data:
container_name: sentry-data
hostname: sentry-data
image: busybox:latest
# volumes:
# - ./data/:/data
# - ./db_data/:/var/lib/postgresql/data
entrypoint: /bin/echo
redis:
container_name: sentry-redis
hostname: sentry-redis
image: redis:2.8
volumes_from:
- data
restart: always
postgres:
container_name: sentry-postgres
hostname: sentry-postgres
image: postgres:9.4
volumes_from:
- data
restart: always
sentry:
container_name: sentry
hostname: sentry
image: sentry_image
links:
- postgres
- redis
volumes_from:
- data
depends_on:
- postgres
- redis
entrypoint: sentry
command: start --noinput
env_file:
- secrets/environment.sh
# restart: always
sentry_celery_beat:
container_name: sentry_celery_beat
hostname: sentry_celery_beat
image: sentry_image
links:
- redis
- postgres
command: "sentry celery beat"
volumes:
- ./sentry.conf.py:/root/.sentry/sentry.conf.py
- ./config.yml:/root/.sentry/config.yml
depends_on:
- postgres
- redis
sentry_celery_worker:
container_name: sentry_celery_worker
hostname: sentry_celery_worker
image: sentry_image
links:
- redis
- postgres
command: "sentry celery worker"
environment:
- C_FORCE_ROOT=True
volumes:
- ./sentry.conf.py:/root/.sentry/sentry.conf.py
- ./config.yml:/root/.sentry/config.yml
depends_on:
- postgres
- redis