forked from tweedegolf/tguard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (96 loc) · 3.25 KB
/
docker-compose.yml
File metadata and controls
103 lines (96 loc) · 3.25 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
version: '3.7'
services:
frontend:
build:
context: .
dockerfile: ./docker/rust.Dockerfile
tty: true
volumes:
- "./common:/app/common"
- "./frontend:/app/frontend"
expose: [8080]
command: [trunk, serve, --proxy-backend=http://backend:9000/api/]
working_dir: /app/frontend
environment:
TRUNK_SERVE_NO_AUTORELOAD: "true"
NODE_ENV: development
networks: [default]
backend:
build:
context: .
dockerfile: ./docker/rust.Dockerfile
depends_on: [psql, mailhog]
tty: true
volumes:
- "./common:/app/common"
- "./backend:/app/backend"
expose: [9000]
command: [ "cargo", "watch", "--watch", "src/", "-x", "run" ]
working_dir: /app/backend
ports: ["127.0.0.1:8000:8000"]
environment:
ROCKET_HOST: http://tguard.localhost
ROCKET_MAIL_HOST: mailhog
ROCKET_MAIL_USER: "tguard@tguard.localhost"
ROCKET_FROM_FALLBACK: "tguard@tguard.localhost"
ROCKET_MAIL_PORT: 1025
ROCKET_ADDRESS: "0.0.0.0"
ROCKET_STORAGE_TYPE: "local"
ROCKET_STORAGE_LOCATION: "/tmp"
ROCKET_MAILGUN_MESSAGE_URL_PREFIX: "https://storage.eu.mailgun.net/v3/"
ROCKET_DATABASES: '{db={url="postgres://tguard@psql:5432/tguard"}}'
ROCKET_ALLOWED_ATTRIBUTES: '["pbdf.sidn-pbdf.email.email","pbdf.gemeente.address.city","pbdf.gemeente.personalData.over18","pbdf.gemeente.address.houseNumber"]'
ROCKET_MAXIMUM_FILE_SIZE: 2621440
RUST_LOG: debug
networks: [default]
nginx:
image: nginx:1.21
depends_on: [frontend, backend]
volumes:
- ".:/app"
- "./docker/nginx.conf:/etc/nginx/nginx.conf:ro"
environment:
TZ: Europe/Amsterdam
NGINX_ENTRYPOINT_QUIET_LOGS: 1
ports: ["127.0.0.1:80:80"]
networks: [default]
sigverify:
image: golang:latest
user: "$USER_ID:$GROUP_ID"
volumes:
- ".:/app"
expose: [8080]
command: [ "go", "run", "." ]
working_dir: /app/sigverify
environment:
SCHEMES_DIR: /app/irma_configuration
networks: [default]
irmaserver:
build:
context: .
dockerfile: ./docker/irma.Dockerfile
user: "$USER_ID:$GROUP_ID"
expose: [8088]
command: [ "server", "-u", "http://${IP_ADDRESS:-127.0.0.1}" ]
networks: [default]
psql:
image: postgres:12
command: ["postgres", "-c", "log_statement=all", "-c", "max_connections=200"]
environment:
POSTGRES_USER: tguard
POSTGRES_DB: tguard
POSTGRES_HOST_AUTH_METHOD: trust
TZ: Europe/Amsterdam
ports: ["127.0.0.1:5432:5432"]
networks: [default]
mailhog:
image: mailhog/mailhog:v1.0.0
environment:
MH_API_BIND_ADDR: 0.0.0.0:1080
MH_UI_BIND_ADDR: 0.0.0.0:1080
MH_SMTP_BIND_ADDR: 0.0.0.0:1025
TZ: Europe/Amsterdam
ports: [ "127.0.0.1:1080:1080" ]
networks: [default]
networks:
default: ~