-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 913 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 913 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
VERSION: ${VERSION:-dev}
COMMIT: ${COMMIT:-unknown}
BUILD_DATE: ${BUILD_DATE:-unknown}
image: golang-daemon-app:latest
container_name: golang-daemon-app
restart: unless-stopped
ports:
- "${APP_PORT:-8080}:8080"
environment:
- APP_NAME=${APP_NAME:-golang-daemon-app}
- APP_PORT=${APP_PORT:-8080}
- LOG_LEVEL=${LOG_LEVEL:-info}
- LOG_FORMAT=${LOG_FORMAT:-json}
- LOG_OUTPUT=${LOG_OUTPUT:-stdout}
volumes:
- ./configs:/app/configs:ro
- app-logs:/var/log/app
networks:
- app-network
healthcheck:
test: ["CMD", "/app/app", "--version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
volumes:
app-logs:
driver: local
networks:
app-network:
driver: bridge