-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
62 lines (60 loc) · 1.2 KB
/
docker-compose.yaml
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
---
networks:
app:
services:
postgresql:
image: postgres:13
ports:
- "5432:5432"
volumes:
- ./:/django:ro
environment:
POSTGRES_PASSWORD: securedroppassword
POSTGRES_USER: securedrop
POSTGRES_DB: securedropdb
user: postgres
networks:
app:
aliases:
- db
node:
build:
context: .
dockerfile: devops/docker/NodeDockerfile
args:
USERID: ${UID:?err}
volumes:
- ./:/django
working_dir: /django
user: ${UID:?err}
networks:
- app
django:
stdin_open: true
tty: true
build:
context: .
dockerfile: devops/docker/DevDjangoDockerfile
args:
USERID: ${UID:?err}
depends_on:
- node
- postgresql
environment:
DJANGO_DB_PASSWORD: securedroppassword
DJANGO_DB_USER: securedrop
DJANGO_DB_NAME: securedropdb
DJANGO_DB_PORT: 5432
DJANGO_DB_HOST: db
DJANGO_XMLTEST_OUTPUT: "yes"
DEPLOY_ENV: dev
DJANGO_ONION_HOSTNAME: secrdrop5wyphb5x.onion
working_dir: /django
volumes:
- ./:/django
ports:
- "127.0.0.1:8000:8000"
networks:
app:
aliases:
- app