-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (24 loc) · 900 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
24 lines (24 loc) · 900 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
services:
web:
build: .
image: opensentry-command:latest
# Expose the app on localhost
ports:
- "5000:5000"
# Allow the container to reach the host at host.docker.internal (OAuth2, etc.)
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
HOST: 0.0.0.0
PORT: 5000
# Change this in production
SECRET_KEY: ${SECRET_KEY:-change-me}
# If you need full mDNS on native Linux engine, you can switch to host networking instead:
# network_mode: host # and remove the ports mapping above
# Persist settings and devices list between runs (optional but recommended)
volumes:
- ./config_store.json:/app/config_store.json
# To persist devices between runs, first create the file locally:
# touch devices_store.json
# - ./devices_store.json:/app/devices_store.json
restart: unless-stopped