-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
66 lines (64 loc) · 1.33 KB
/
docker-compose.yaml
File metadata and controls
66 lines (64 loc) · 1.33 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
---
networks:
app:
services:
postgresql:
image: postgres:14
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}
image: localhost/securedroporg-node
volumes:
- ./:/django:z
working_dir: /django
user: ${UID:?err}
userns_mode: keep-id
networks:
- app
django:
stdin_open: true
tty: true
build:
context: .
dockerfile: devops/docker/DevDjangoDockerfile
args:
USERID: ${UID:?err}
image: localhost/securedroporg-django
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
userns_mode: keep-id
volumes:
- ./:/django:z
ports:
- '127.0.0.1:8000:8000'
networks:
app:
aliases:
- app