mirror of
https://github.com/nocodb/nocodb.git
synced 2026-10-29 00:55:39 +08:00
45 lines
935 B
YAML
45 lines
935 B
YAML
services:
|
|
|
|
nocodb:
|
|
image: nocodb/nocodb:latest
|
|
env_file: docker.env
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart: unless-stopped
|
|
volumes:
|
|
- nocodb_data:/usr/app/data
|
|
- ./nocodb/db.json:/usr/app/data/db.json
|
|
networks:
|
|
- nocodb-network
|
|
ports:
|
|
- '8080:8080'
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'wget -q --tries=1 --spider http://localhost:8080/api/v1/health || exit 1']
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
worker:
|
|
image: nocodb/nocodb:latest
|
|
env_file: docker.env
|
|
environment:
|
|
NC_WORKER_CONTAINER: 'true'
|
|
depends_on:
|
|
nocodb:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
volumes:
|
|
- nocodb_data:/usr/app/data
|
|
- ./nocodb/db.json:/usr/app/data/db.json
|
|
networks:
|
|
- nocodb-network
|
|
|
|
networks:
|
|
nocodb-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
nocodb_data:
|