-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
48 lines (42 loc) · 1.11 KB
/
docker-compose.dev.yaml
File metadata and controls
48 lines (42 loc) · 1.11 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
services:
web:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env.dev
ports:
# FastAPI is running on port 8000 in the container. Make it accessible
# on port 8000 of the local machine
- "8000:8000"
depends_on:
# Almost a minute on clean start, about 20 seconds with a volume. Cleaner to just wait for Cassandra to
# be ready for connection before starting the web-app container
cassandra:
condition: service_healthy
# NOTE: Make sure the .env.dev matches all the connection
# details that we listed here.
postgres:
image: postgres:15
env_file:
- .env.dev
volumes:
- postgres_data:/var/lib/postgresql/data
cassandra:
image: cassandra:4.1
env_file:
- .env.dev
volumes:
- cassandra_data:/var/lib/cassandra
healthcheck:
test: ["CMD", "cqlsh", "-u", "cassandra", "-p", "cassandra", "-e", "DESCRIBE KEYSPACES"]
interval: 10s
timeout: 10s
retries: 10
redis:
image: redis:7.2
env_file:
- .env.dev
volumes:
cassandra_data:
postgres_data: