-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (69 loc) · 2.01 KB
/
docker-compose.yml
File metadata and controls
73 lines (69 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
teable:
image: ghcr.io/teableio/teable:latest
deploy:
replicas: 2
restart: always
labels:
- 'traefik.enable=true'
- 'traefik.http.services.teable.loadbalancer.server.port=3000'
- 'traefik.http.routers.teable.rule=Host(`example.netvpc.com`)'
- 'traefik.http.routers.teable.service=teable'
- 'traefik.http.routers.teable.entrypoints=websecure'
- 'traefik.http.routers.teable.tls=true'
- 'traefik.http.routers.teable.tls.certresolver=letsencrypt'
volumes:
- ./teable-data:/app/.assets:rw
env_file:
- .env
environment:
- TZ=${TIMEZONE}
- NEXT_ENV_IMAGES_ALL_REMOTE=true
networks:
- traefik-network
- teable-network
depends_on:
teable-db-migrate:
condition: service_completed_successfully
teable-cache:
condition: service_healthy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
start_period: 5s
interval: 5s
timeout: 3s
retries: 3
teable-db-migrate:
image: ghcr.io/teableio/teable-db-migrate:latest
environment:
- TZ=${TIMEZONE}
- PRISMA_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
networks:
- teable-network
teable-cache:
image: redis:7-bookworm
container_name: teable-cache
restart: always
volumes:
- teable-cache:/data:rw
# you may use a bind-mounted host directory instead,
# so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/cache/data:/data:rw
networks:
- teable-network
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
interval: 10s
timeout: 3s
retries: 3
networks:
teable-network:
external: true
traefik-network:
external: true
volumes:
teable-db: {}
teable-cache: {}
teable-storage: {}
teable-data: {}