34 lines
787 B
YAML
34 lines
787 B
YAML
services:
|
|
service:
|
|
image: git.mifi.dev/...:${IMAGE_TAG:-latest}
|
|
container_name: service
|
|
environment:
|
|
- ENV_NAME=value
|
|
healthcheck:
|
|
test:
|
|
[
|
|
'CMD',
|
|
'/usr/local/bin/healthcheck.sh',
|
|
'--connect',
|
|
'--innodb_initialized'
|
|
]
|
|
retries: 10
|
|
start_period: 20s
|
|
networks:
|
|
- network
|
|
volumes:
|
|
- volume:/var/lib/...
|
|
- other_volume:/var/lib/...
|
|
depends_on:
|
|
- other service
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
network:
|
|
external: true
|
|
|
|
volumes:
|
|
volume:
|
|
external: true
|
|
other_volume:
|
|
external: false |