2022-11-26 22:00:34 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
container_name: ${db_container_name}
|
|
|
|
image: ${database_image}:${database_version}
|
|
|
|
volumes:
|
2023-04-18 19:43:09 +00:00
|
|
|
- database:${database_path}:Z
|
2023-08-10 19:40:43 +00:00
|
|
|
healthcheck:
|
2023-08-10 21:35:55 +00:00
|
|
|
test: ["CMD-SHELL", "pg_isready -U vaultwarden"]
|
2023-08-14 14:45:24 +00:00
|
|
|
interval: 60s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
start_period: 5s
|
2022-11-26 22:00:34 +00:00
|
|
|
|
|
|
|
app:
|
|
|
|
container_name: ${container_name}
|
2023-08-18 16:14:05 +00:00
|
|
|
image: ${service_image}:${service_version}
|
2022-11-26 22:00:34 +00:00
|
|
|
volumes:
|
2023-04-18 19:43:09 +00:00
|
|
|
- data:/data:Z
|
2022-11-26 22:00:34 +00:00
|
|
|
ports:
|
2023-10-21 12:09:29 +00:00
|
|
|
- ${listen_if}:${listen_port}:80
|
2023-08-10 19:56:29 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "/healthcheck.sh"]
|
|
|
|
interval: 60s
|
|
|
|
timeout: 10s
|
2023-08-14 14:45:24 +00:00
|
|
|
retries: 3
|
|
|
|
start_period: 5s
|
2022-11-26 22:00:34 +00:00
|
|
|
depends_on:
|
|
|
|
- ${db_container_name}
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
data:
|