-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1.06 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
version: '3.8'
services:
pyfinder:
build:
context: .
dockerfile: Dockerfile
ports:
- "5006:5006"
volumes:
#- ./data:/app/data
- ./queries:/app/queries
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- HOST=0.0.0.0
- PORT=5006
- BOKEH_ALLOW_WS_ORIGIN=localhost:5006,0.0.0.0:5006,127.0.0.1:5006
- BOKEH_WEBSOCKET_MAX_MESSAGE_SIZE=20971520
- POSTGRES_HOST=${POSTGRES_HOST:-localhost}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_DB=${POSTGRES_DB:-circles}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5006"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- pyfinder-network
networks:
pyfinder-network:
driver: bridge