-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
79 lines (73 loc) · 1.76 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
volumes:
db-data:
debug-mail:
autograph-certs:
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
memcached:
platform: linux/amd64
image: memcached:1
autograph:
platform: linux/amd64
image: mozilla/autograph
user: root
volumes:
- autograph-certs:/tmp/autograph
certchains:
image: httpd:2
volumes:
- autograph-certs:/usr/local/apache2/htdocs/
depends_on:
- autograph
ports:
- 9999:80
web:
build:
dockerfile: RemoteSettings.Dockerfile
target: local
context: .
image: remotesettings/local
depends_on:
- db
- memcached
- autograph
environment:
- KINTO_CACHE_BACKEND=kinto.core.cache.memcached
- KINTO_CACHE_HOSTS=memcached:11211 memcached:11212
- 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
ports:
- 8888:8888
volumes:
- ./config:/app/config
- ./kinto-remote-settings:/app/kinto-remote-settings
- debug-mail:/app/mail
- attachments:/tmp/attachments
tests:
build:
dockerfile: BrowserTests.Dockerfile
context: .
image: remotesettings/tests
profiles: [browser-test]
depends_on:
- web
- certchains
environment:
- SERVER=http://web:8888/v1
- MAIL_DIR=/var/debug-mail/
volumes:
- debug-mail:/var/debug-mail/