-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (43 loc) · 1.07 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
version: '3.5'
services:
zauth:
image: ghcr.io/zeuswpi/zauth:latest
ports:
- "8000:8000"
restart: on-failure
depends_on:
- database
command: >
sh -c "diesel --database-url 'postgresql://zauth:zauth@database/zauth' database setup && RUST_LOG=info ROCKET_PROFILE=release zauth"
volumes:
- ${PWD}/Rocket.toml:/usr/src/zauth/Rocket.toml
smtp-relay:
image: dcagatay/emailrelay
command: --forward-on-disconnect --forward-to smtp.ugent.be:25
volumes:
- zauth-mailrelay:/var/spool/emailrelay
database:
image: postgres:13-alpine
restart: on-failure
environment:
POSTGRES_USER: zauth
POSTGRES_PASSWORD: zauth
volumes:
- zauth-database:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
healthcheck:
test: "pg_isready -U zauth"
interval: 10s
timeout: 5s
retries: 5
adminer:
image: adminer:latest
depends_on:
- database
environment:
ADMINER_DEFAULT_SERVER: database
ports:
- 127.0.0.1:8080:8080
volumes:
zauth-database: