forked from mozilla-releng/shipit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 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
version: '3'
services:
api:
build: api
ports:
- "8015:8015"
volumes:
# This doesn't quite work because the app has to be installed
# Maybe we should drop the volume mount and rely on rebuilding?
- ./api:/app
environment:
- HOST=0.0.0.0
- PORT=8015
- APP_URL=https://localhost:8015
- APP_SETTINGS=/app/settings.py
- APP_CHANNEL=development
- DATABASE_URL=postgres://shipituser:shipitpassword@db/shipitdb
- AUTH_AUDIENCE=todo
- AUTH_CLIENT_ID=todo
- AUTH_CLIENT_SECRET=todo
- AUTH_DOMAIN=todo
- AUTH_REDIRECT_URI=todo
- SECRET_KEY_BASE64=bm90YXNlY3JldA== # notasecret
- DISABLE_NOTIFY=1
depends_on:
- db
db:
image: postgres:11
volumes:
- dbstore:/var/lib/postgresql/data
environment:
- POSTGRES_USER=shipituser
- POSTGRES_PASSWORD=shipitpassword
- POSTGRES_DB=shipitdb
healthcheck:
test: ["CMD-SHELL", "-c", "pg_isready -U shipituser -d shipitdb"]
interval: 10s
timeout: 5s
retries: 5
ui:
# SSL doesn't work with node:current
image: node:10
ports:
- "8010:8010"
volumes:
- ./frontend:/app
- node_modules:/app/node_modules
environment:
- HOST=0.0.0.0
- PORT=8010
- SHIPIT_API_URL=https://localhost:8015
- RELEASE_CHANNEL=development
- RELEASE_VERSION=61
entrypoint:
- /bin/bash
- --login
- -c
- cd /app && yarn install && yarn start
# TODO: worker, maybe pulse?
volumes:
dbstore:
node_modules: