-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1014 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (47 loc) · 1014 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
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
db:
image: postgres:14-alpine
container_name: resa_db
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=resa_db
volumes:
- ./backend/init-db:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
api:
build: ./backend
container_name: resa_api
restart: always
depends_on:
- db
ports:
- "3000:3000"
environment:
DB_HOST: db
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: resa_db
DB_PORT: 5432
NODE_ENV: development
SECRET_KEY: 1234567890123432
volumes:
- ./backend:/app
- /app/node_modules
frontend:
build: ./frontend
container_name: resa_frontend
restart: always
ports:
- "3001:3000"
environment:
NODE_ENV: development
SECRET_KEY: 1234567890123432
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
pgdata: