automated-setup/script/stacks/baserow/docker-compose.yml

62 lines
1.6 KiB
YAML

version: '3.9'
services:
baserow:
container_name: {{ customer }}-baserow
image: baserow/baserow:latest
restart: always
environment:
- BASEROW_PUBLIC_URL=https://{{ domain_baserow }}
- DATABASE_URL=postgresql://{{ baserow_postgres_user }}:{{ baserow_postgres_password }}@baserow-db:5432/baserow
- EMAIL_SMTP=True
- EMAIL_SMTP_USE_TLS=True
- EMAIL_SMTP_HOST=
- EMAIL_SMTP_PORT=587
- FROM_EMAIL=
- EMAIL_SMTP_USER=
- EMAIL_SMTP_PASSWORD=
volumes:
- {{ customer }}-baserow-data:/baserow/data
- {{ customer }}-baserow-backups:/tmp/backups
ports:
- "127.0.0.1:3012:80"
#- "127.0.0.1:3013:443"
depends_on:
- baserow-db
networks:
{{ customer }}-baserow:
ipv4_address: 172.20.17.2
baserow-db:
container_name: {{ customer }}-baserow-db
image: postgres:15-alpine
restart: always
environment:
POSTGRES_DB: 'baserow'
POSTGRES_USER: '{{ baserow_postgres_user }}'
POSTGRES_PASSWORD: '{{ baserow_postgres_password }}'
volumes:
- {{ customer }}-baserow-postgres:/var/lib/postgresql/data
- {{ customer }}-baserow-backups:/tmp/backups
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
networks:
{{ customer }}-baserow:
ipv4_address: 172.20.17.3
networks:
{{ customer }}-baserow:
ipam:
driver: default
config:
- subnet: 172.20.17.0/28
gateway: 172.20.17.1
volumes:
{{ customer }}-baserow-data:
{{ customer }}-baserow-postgres:
{{ customer }}-baserow-backups: