-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (83 loc) · 2.23 KB
/
docker-compose.yml
File metadata and controls
95 lines (83 loc) · 2.23 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
tidb:
image: pingcap/tidb:latest
container_name: hindsight-tidb
restart: unless-stopped
ports:
- "4000:4000"
- "10080:10080"
command:
- --store=unistore
- --path=/tmp/tidb
- -L=info
- -initialize-sql-file=/docker-entrypoint-initdb.d/init.sql
- -initialize-insecure
networks:
- shared-network
volumes:
- tidb_data:/tmp/tidb
- ./docker_data/tidb-init/init.sql:/docker-entrypoint-initdb.d/init.sql
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME:-hindsight-localstack-main}"
image: gresau/localstack-persist
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG:-0}
- SERVICES=s3
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- PERSISTENCE=1
- INIT_SCRIPTS_PATH=/etc/localstack/init/ready.d
volumes:
- "./docker_data/localstack-data:/persisted-data"
- "${LOCALSTACK_VOLUME_DIR:-./docker_data/volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- ./docker_data/localstack-init:/etc/localstack/init/ready.d:ro
networks:
- shared-network
# valkey
valkey:
image: valkey/valkey:latest
container_name: hindsight-valkey
restart: unless-stopped
ports:
- "6379:6379" # Redis port
command: valkey-server /usr/local/etc/valkey/valkey.conf
volumes:
- ./docker_data/valkey/data:/data
- ./docker_data/valkey/conf:/usr/local/etc/valkey
networks:
- shared-network
backend:
build: .
container_name: hindsight-backend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- IS_PROD=true
networks:
- shared-network
depends_on:
- valkey
- tidb
cloudflare-tunnel:
image: cloudflare/cloudflared:latest
container_name: hindsight-cloudflare-tunnel
restart: unless-stopped
command: tunnel run
env_file:
- .env
networks:
- shared-network
depends_on:
- backend
- tidb
volumes:
tidb_data:
networks:
shared-network:
driver: bridge