-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.03 KB
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
services:
purro-core:
# For production: image is pulled from GHCR (set via DOCKER_IMAGE env var)
# For local dev: build section allows local development
build:
context: .
dockerfile: Dockerfile
image: ${DOCKER_IMAGE:-purro-core:latest}
container_name: purro-core-app
ports:
- "${APP_PORT:-8080}:8080"
env_file:
# Production: ENV_FILE points to /etc/pi/webapps/purro/purro-core/.env
# Local dev: defaults to .env in current directory
- ${ENV_FILE:-.env}
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8080/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- purro-network
- pi-net
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
purro-network:
driver: bridge
pi-net:
external: true