forked from UBAutograding/leviathan
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 902 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 902 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
services:
leviathan:
image: leviathan:dev
build:
context: .
ports:
- "9221:9221"
- "22:22"
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./appdata2/:/app/appdata
# warning mounting ssh will not work in windows hosts https://nickjanetakis.com/blog/docker-tip-56-volume-mounting-ssh-keys-into-a-docker-container
- ~/.ssh:/root/.ssh:ro # Read-only for security
restart: "no"
profiles:
- lev
- '' # so it starts with normal docker compose
db:
# Runs the PostgreSQL database
image: postgres
environment:
POSTGRES_DB: leviathan
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- '5432:5432'
expose:
- '5432'
restart: unless-stopped
profiles:
- dev
- post
- '' # so it starts with normal docker compose