-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.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
version: '3.8'
services:
db:
image: postgis/postgis:16-3.4
container_name: openrescue_db
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER:-openrescue}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-openrescue_pass}
POSTGRES_DB: ${POSTGRES_DB:-openrescue_db}
volumes:
- openrescue_pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7-alpine
container_name: openrescue_redis
restart: always
volumes:
- openrescue_redisdata:/data
command: redis-server --appendonly yes
ports:
- "6379:6379"
backend:
build:
context: ./backend
container_name: openrescue_backend
restart: always
depends_on:
- db
- redis
environment:
- DB_USER=${POSTGRES_USER:-openrescue}
- DB_PASSWORD=${POSTGRES_PASSWORD:-openrescue_pass}
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-openrescue_db}
- REDIS_URL=redis://redis:6379/0
ports:
- "8000:8000"
volumes:
- ./backend:/app
discovery:
build:
context: ./discovery
container_name: openrescue_discovery
restart: always
network_mode: "host"
volumes:
openrescue_pgdata:
openrescue_redisdata: