-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
74 lines (70 loc) · 1.91 KB
/
compose.dev.yml
File metadata and controls
74 lines (70 loc) · 1.91 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
74
---
services:
tiled:
build:
context: .
dockerfile: Containerfile
environment:
- TILED_SINGLE_USER_API_KEY=${TILED_SINGLE_USER_API_KEY}
- TILED_CATALOG_URI=postgresql://tiled:${POSTGRES_PASSWORD}@postgres:5432/tiled_catalog
- TILED_CATALOG_WRITABLE_STORAGE=["file:///storage", "postgresql://tiled:${POSTGRES_PASSWORD}@postgres:5432/tiled_storage"]
- TILED_STREAMING_CACHE_URI=redis://:${REDIS_PASSWORD}@redis:6379
volumes:
- tiled_data:/storage
ports:
- 8000:8000
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- backend
healthcheck:
test: curl --fail http://localhost:8000/healthz || exit 1
interval: 60s
timeout: 10s
retries: 3
start_period: 30s
postgres:
image: docker.io/postgres:16
environment:
- POSTGRES_USER=tiled
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# We create two databases, 'tiled_catalog' (metadata) and
# 'tiled_storage' (tabular data) below. But it is required to
# specify one here, so we use 'postgres' as a neutral default.
- POSTGRES_DB=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- ./initdb:/docker-entrypoint-initdb.d
restart: unless-stopped
networks:
- backend
healthcheck:
test: pg_isready -U tiled -d postgres
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
redis:
image: docker.io/redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/data
restart: unless-stopped
networks:
- backend
healthcheck:
test: redis-cli -a ${REDIS_PASSWORD} ping
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
volumes:
tiled_data:
postgres_data:
redis_data:
networks:
backend: {}