-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.51 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
48
49
50
51
52
53
54
55
56
57
services:
web:
build:
context: "."
dockerfile: ./Dockerfile
target: "app"
args:
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
- "NODE_ENV=${NODE_ENV:-production}"
- "FLASK_ENV=${FLASK_ENV:-production}"
env_file:
- ".env"
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
stop_grace_period: "3s"
tty: true
deploy:
resources:
limits:
cpus: "${DOCKER_WEB_CPUS:-0}"
memory: "${DOCKER_WEB_MEMORY:-0}"
healthcheck:
test: "${DOCKER_WEB_HEALTHCHECK_TEST:-curl localhost:8000/api/up}"
interval: "60s"
timeout: "3s"
start_period: "5s"
retries: 3
ports:
- "${DOCKER_WEB_PORT_FORWARD:-8000}:${PORT:-8000}"
# If using a VPN to connect to remote machines remove ports
# and use the host network
# network: host
profiles: ["web"]
environment:
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
volumes:
# Volume for report data
- ./data:/app/backend/data
# Linux configuration
- ${SSH_AUTH_SOCK}:/ssh-agent
# MacOS configuration
# - /run/host-services/ssh-auth.sock:/ssh-agent
# To connect to the container in the remote connection dialog use `ssh` and port `22`
ssh:
build:
dockerfile: Dockerfile
context: ./docker/SSH
args:
- "username=w0269804"
# See README for SSH container for keypath
- "keypath=./id_ed25519.pub"
ports:
- "${DOCKER_SSH_PORT_FORWARD:-2222}:22"