-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1005 Bytes
/
docker-compose.yml
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
version: "3.8"
services:
backend:
build:
context: ./src/backend/
dockerfile: backend.Dockerfile
volumes:
- ./src/backend:/usr/src/app
ports:
- 5000:5000
env_file:
- ./src/backend/.env
depends_on:
- db
db:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=testpass
- POSTGRES_DB=chimarathontest
frontend:
build:
context: ./src/frontend/
dockerfile: frontend.Dockerfile
command: ["npm", "start"]
volumes:
- ./src/frontend:/frontend
- node-modules:/frontend/node_modules
environment:
- NODE_ENV=development
ports:
- "3000:3000"
depends_on:
- backend
volumes:
postgres_data:
node-modules: