34 lines
712 B
YAML
34 lines
712 B
YAML
version: '3'
|
|
services:
|
|
database:
|
|
container_name: ${db_container_name}
|
|
image: ${database_image}:${database_version}
|
|
volumes:
|
|
- database:${database_path}:Z
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U vaultwarden"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 5s
|
|
|
|
app:
|
|
container_name: ${container_name}
|
|
image: ${service_image}:${service_version}
|
|
volumes:
|
|
- data:/data:Z
|
|
ports:
|
|
- ${listen_if}:${listen_port}:80
|
|
healthcheck:
|
|
test: ["CMD", "/healthcheck.sh"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 5s
|
|
depends_on:
|
|
- ${db_container_name}
|
|
|
|
volumes:
|
|
database:
|
|
data:
|