nocodb/compose.yml
f 9edbda1968
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
chore: publish 1.1.5+0.263.6 release
2025-06-13 11:10:53 -03:00

68 lines
1.8 KiB
YAML

---
version: "3.8"
services:
app:
image: nocodb/nocodb:0.263.6
secrets:
- nc_db_url
networks:
- proxy
- internal
environment:
DATABASE_URL_FILE: /run/secrets/nc_db_url
NC_PUBLIC_URL: https://${DOMAIN}
NC_DISABLE_TELE: "true"
volumes:
- data:/usr/app/data
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=1.1.5+0.263.6"
db:
image: postgres:13.2-alpine
secrets:
- db_password
networks:
- internal
environment:
POSTGRES_USER: nocodb
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: nocodb
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U nocodb -d nocodb
interval: 10s
timeout: 2s
retries: 10
volumes:
data:
db:
networks:
proxy:
external: true
internal:
secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
nc_db_url:
external: true
name: ${STACK_NAME}_nc_db_url_${SECRET_NC_DB_URL_VERSION}