forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
120 lines (111 loc) · 2.82 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
# docker-compose for Socorro development.
#
# Note: Requires docker-comopse 1.10+.
version: "2"
services:
# Socorro base image
base:
build:
context: .
dockerfile: ./docker/Dockerfile
image: local/socorro_base
# Processor app
processor:
build:
context: .
dockerfile: ./docker/Dockerfile.processor
image: local/socorro_processor
env_file:
- docker/config/docker_common.env
- docker/config/local_development.env
- docker/config/processor.env
- my.env
depends_on:
# - statsd -- FIXME(willkg): broken for some reason
- localstack-s3
- postgresql
- elasticsearch
- rabbitmq
volumes:
- .:/app
# Webapp app
webapp:
build:
context: .
dockerfile: ./docker/Dockerfile.webapp
image: local/socorro_webapp
env_file:
- docker/config/docker_common.env
- docker/config/local_development.env
- docker/config/webapp.env
- my.env
depends_on:
# - statsd -- FIXME(willkg): broken for some reason
- localstack-s3
- postgresql
- elasticsearch
- rabbitmq
command: ["/app/docker/run_webapp.sh", "--dev"]
ports:
- "8000:8000"
volumes:
- .:/app
# Crontabber app
crontabber:
build:
context: .
dockerfile: ./docker/Dockerfile.crontabber
image: local/socorro_crontabber
env_file:
- docker/config/docker_common.env
- docker/config/local_development.env
- docker/config/crontabber.env
- my.env
depends_on:
- localstack-s3
- postgresql
- elasticsearch
- rabbitmq
volumes:
- .:/app
# -----------------------------
# External services
# -----------------------------
# https://hub.docker.com/r/kamon/grafana_graphite/
# username: admin, password: admin
statsd:
image: kamon/grafana_graphite
ports:
- "8080:3000" # grafana port
# https://hub.docker.com/_/elasticsearch/
# Note: This image is deprecated, but the new one requires fiddling.
elasticsearch:
image: elasticsearch:1.4.5
ports:
- "9200:9200"
- "9300:9300"
# https://hub.docker.com/_/rabbitmq/
rabbitmq:
image: rabbitmq:3.6.9
environment:
- RABBITMQ_DEFAULT_USER=rabbituser
- RABBITMQ_DEFAULT_PASS=rabbitpwd
- RABBITMQ_DEFAULT_VHOST=rabbitvhost
# https://hub.docker.com/_/postgres/
postgresql:
image: postgres:9.4
environment:
# Create the superuser account
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=aPassword
- POSTGRES_DB=breakpad
# https://hub.docker.com/r/localstack/localstack/
# localstack running a fake S3
localstack-s3:
image: localstack/localstack:0.7.4
environment:
- SERVICES=s3:5000
- DEFAULT_REGION=us-west-2
- HOSTNAME=localstack-s3
ports:
- "5000:5000"