-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (47 loc) · 1019 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
43
44
45
46
47
version: '3'
services:
postgres:
image: postgres
ports:
- 5432:5432
container_name: time-tracker-postgres-container
networks:
- portfolio-project-network
volumes:
- postgresData:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: shubham
POSTGRES_DB: time-tracker
server:
build:
context: './server'
dockerfile: Dockerfile
ports:
- 5500:5500
container_name: time-tracker-server-container
networks:
- portfolio-project-network
env_file: ./server/.env.local
volumes:
- ./server:/app
depends_on:
- postgres
client:
build:
context: './client'
dockerfile: Dockerfile
ports:
- 8000:8000
container_name: time-tracker-client-container
networks:
- portfolio-project-network
volumes:
- ./client:/app
- /app/node_modules
depends_on:
- server
networks:
portfolio-project-network:
volumes:
postgresData: