computer-playbook/roles/docker-baserow/templates/docker-compose.yml.j2

33 lines
817 B
Plaintext
Raw Normal View History

2023-09-02 18:09:06 +02:00
version: '2'
services:
{% include 'templates/docker-service-redis.yml.j2' %}
{% include 'templates/docker-service-' + database_type + '.yml.j2' %}
2024-01-06 12:10:16 +01:00
application:
2023-09-02 18:09:06 +02:00
image: baserow/baserow:1.19.1
2024-01-06 12:10:16 +01:00
container_name: baserow-application
restart: {{docker_restart_policy}}
2023-09-02 18:09:06 +02:00
logging:
driver: journald
env_file:
- ./env
volumes:
- data:/baserow/data
2023-09-02 18:09:06 +02:00
ports:
- "{{http_port}}:80"
2024-01-06 14:59:09 +01:00
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/"]
interval: 1m
timeout: 10s
retries: 3
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-networks.yml.j2' %}
2024-01-06 12:10:16 +01:00
{% include 'templates/docker-container-depends-on-database-redis.yml.j2' %}
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-compose-volumes.yml.j2' %}
data:
redis:
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-compose-networks.yml.j2' %}