-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 997 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 997 Bytes
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
services:
simplelogin:
image: ghcr.io/infinityofspace/simplelogin-docker-aio:latest
restart: unless-stopped
depends_on:
- db
ports:
- "7777:7777"
- "25:25"
volumes:
- "data:/sl"
- "uploads:/code/static/upload"
- "./certs/cert.pem:/etc/ssl/certs/cert.pem"
- "./certs/cert.key:/etc/ssl/private/cert.key"
- "./simplelogin.env:/code/.env"
env_file:
- db.env
- simplelogin.env
environment:
POSTGRES_HOST: db
POSTGRES_PORT: 5432
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:7777 || exit 1
interval: 30s
timeout: 10s
retries: 3
db:
image: postgres:12.1
restart: unless-stopped
volumes:
- "db_data:/var/lib/postgresql/data"
env_file:
- db.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 30s
timeout: 10s
retries: 3
volumes:
data:
uploads:
db_data: