-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
116 lines (109 loc) · 2.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
116 lines (109 loc) · 2.78 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
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
volumes:
db-data:
debug-mail:
debug-slack:
attachments:
services:
db:
image: postgres:15
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
PGUSER: postgres
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 1s
timeout: 3s
retries: 30
memcached1:
image: memcached:1-alpine
command: memcached -m 16 -c 32
memcached2:
image: memcached:1-alpine
command: memcached -m 16 -c 32
autograph:
platform: linux/amd64
image: mozilla/autograph
user: root
ports:
- 8000:8000
web:
build:
dockerfile: RemoteSettings.Dockerfile
target: local
context: .
image: remotesettings/local
depends_on:
db:
condition: service_healthy
memcached1:
condition: service_started
memcached2:
condition: service_started
autograph:
condition: service_started
environment:
- KINTO_CACHE_BACKEND=kinto.core.cache.memcached
- KINTO_CACHE_HOSTS=memcached1:11211 memcached2:11211
- KINTO_STORAGE_BACKEND=kinto.core.storage.postgresql
- KINTO_STORAGE_URL=postgresql://postgres@db/postgres
- KINTO_PERMISSION_BACKEND=kinto.core.permission.postgresql
- KINTO_PERMISSION_URL=postgresql://postgres@db/postgres
- GRANIAN_ACCESS_LOG=true
- KINTO_SLACK_DEBUG_DIR=/app/slack
volumes:
- debug-mail:/app/mail
- debug-slack:/app/slack
- attachments:/tmp/attachments
- ${CONFIG_MOUNT:-./config:/app/config}
- ${SRC_MOUNT:-./kinto-remote-settings:/app/kinto-remote-settings}
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8888/v1/__lbheartbeat__"]
interval: 2s
timeout: 5s
retries: 30
start_period: 5s
git-reader:
build:
context: git-reader/
args:
UID: 1000
GID: 1000
environment:
- GIT_REPO_PATH=/mnt/data/latest
- SELF_CONTAINED=true
volumes:
- ./git-reader/data:/mnt/data
browser-tests:
build:
context: browser-tests/
image: remotesettings/browser-tests
profiles: [browser-tests]
depends_on:
web:
condition: service_healthy
environment:
- SERVER=http://web:8888/v1
- MAIL_DIR=/var/debug-mail/
- SLACK_DIR=/var/debug-slack/
volumes:
- debug-mail:/var/debug-mail/
- debug-slack:/var/debug-slack/
shm_size: 2gb
cronjobs:
build:
context: cronjobs/
image: remotesettings/cronjobs
profiles: [cronjobs]
web-proxy:
image: openresty/openresty
ports:
- 8888:8888
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
web:
condition: service_healthy
git-reader:
condition: service_started