-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (74 loc) · 1.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (74 loc) · 1.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
# Shared configuration snippets
x-logging: &default-logging
driver: json-file
options:
max-size: 10m
max-file: '5'
services:
strictdoc:
build:
context: .
dockerfile: Dockerfile
args:
APP_IMAGE_VERSION: ${APP_VERSION:-1.0.0}
image: strictdoc-service:${APP_VERSION:-latest}
init: true # Enable init process (equivalent to using tini)
container_name: strictdoc_service
restart: unless-stopped
# Network settings
ports:
- 9083:9083
# Environment configuration
environment:
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- PORT=9083
- PYTHONUNBUFFERED=1
# Logging
logging: *default-logging
# Volume configuration
volumes:
- type: tmpfs
target: /tmp
- type: tmpfs
target: /tmp/strictdoc
# Network configuration
networks:
- strictdoc-network
# Resource limits
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 128M
# Optional service for reverse proxy
# Uncomment if needed
# nginx:
# image: nginx:alpine
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx/conf.d:/etc/nginx/conf.d:ro
# - ./nginx/ssl:/etc/nginx/ssl:ro
# networks:
# - strictdoc-network
# depends_on:
# - strictdoc
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost/health"]
# interval: 30s
# timeout: 10s
# retries: 3
# logging: *default-logging
# restart: unless-stopped
networks:
strictdoc-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/16