-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
52 lines (49 loc) · 1.05 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
52 lines (49 loc) · 1.05 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
45
46
47
48
49
50
51
52
version: '3.8'
services:
applens-api:
build:
context: .
dockerfile: Dockerfile
args:
VERSION: ${VERSION:-latest}
GIT_COMMIT: ${GIT_COMMIT:-unknown}
BUILD_TIME: ${BUILD_TIME:-unknown}
image: applens-backend:${VERSION:-latest}
container_name: applens-api
restart: unless-stopped
ports:
- "${PORT:-8080}:8080"
env_file:
- .env.production
environment:
- ENVIRONMENT=production
- PORT=8080
volumes:
- uploads_data:/app/uploads
networks:
- applens-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 128M
cpus: '0.25'
volumes:
uploads_data:
driver: local
networks:
applens-network:
driver: bridge