forked from tulsawebdevs/services-voting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 841 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 841 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.8'
services:
web:
build: .
ports:
- "3000:3000"
environment:
NODE_ENV: development
ROARR_LOG: true
restart: unless-stopped
volumes:
- .:/usr/src/app
db:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- voting_db:/var/lib/postgresql/data
- ./database/db_init.sql:/docker-entrypoint-initdb.d/init.sql
db_test:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
restart: unless-stopped
ports:
- "5433:5432"
volumes:
- ./database/db_init.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
voting_db: