Add reusable deployment helper
All checks were successful
Publish container image / Build and push image (push) Successful in 2s
All checks were successful
Publish container image / Build and push image (push) Successful in 2s
This commit is contained in:
23
deploy/docker-compose.template.yml
Normal file
23
deploy/docker-compose.template.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by deploy/deploy.sh from this repo's deployment template.
|
||||
# Internal port and mounts are service-specific; host port and image tag are
|
||||
# filled in by the deployment helper.
|
||||
|
||||
services:
|
||||
__SERVICE_NAME__:
|
||||
image: __IMAGE__:__IMAGE_TAG__
|
||||
container_name: __SERVICE_NAME__-__SERVICE_NUMBER__
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
PORT: 8091
|
||||
ports:
|
||||
- "__HOST_PORT__:8091"
|
||||
volumes:
|
||||
- ./config:/app/config:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8091/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
Reference in New Issue
Block a user