forked from DigiNodes/truthbounty-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (36 loc) · 726 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (36 loc) · 726 Bytes
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
version: "3.9"
services:
api:
build: .
container_name: truthbounty-api
ports:
- "3000:3000"
env_file:
- .env.docker
depends_on:
- postgres
- redis
volumes:
- .:/app
- /app/node_modules
command: npm run start:dev
postgres:
image: postgres:15
container_name: truthbounty-postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: truthbounty
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: truthbounty-redis
restart: always
ports:
- "6379:6379"
volumes:
postgres_data: