-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 847 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 847 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
version: '3.8'
services:
webserver:
build:
context: .
dockerfile: Dockerfile
container_name: octopus-web
restart: unless-stopped
env_file: .env
ports:
- "${PORT:-5000}:${PORT:-5000}"
volumes:
- .:/app
- ./instance:/app/instance
- ./logs:/app/logs
environment:
- FLASK_ENV=${FLASK_ENV:-production}
- PORT=${PORT:-5000}
- DEBUG=${DEBUG:-False}
- SQLALCHEMY_DATABASE_URI=${SQLALCHEMY_DATABASE_URI:-sqlite:////app/instance/octopus.db}
- SECRET_KEY=${SECRET_KEY:-your_secure_key_here}
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:${PORT:-5000}/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- octopus-network
networks:
octopus-network:
driver: bridge