-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 831 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (40 loc) · 831 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
35
36
37
38
39
40
41
42
version: '3.8'
services:
c3:
build:
context: .
dockerfile: Dockerfile
container_name: c3
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=file:./app/data/app.db
volumes:
- ./data:/app/data
- ./public:/app/public
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 30s
retries: 3
start_period: 5s
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped
networks:
- app-network
networks:
app-network:
driver: bridge