forked from GroceryMateOst/GroceryMateCodeBase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 913 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
version: '3'
services:
frontend:
build: ./grocery-mate-frontend
container_name: grocerymate-frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
networks:
- test-network
backend:
build: ./backend/grocery-mate-backend
container_name: grocerymate-backend
depends_on:
- db
ports:
- "5000:5000"
environment:
DB_CONNECTION_STRING: "host=db;port=5432;database=ClickDB;username=postgres;password=postgres"
networks:
- test-network
db:
image: postgres:latest
container_name: grocerymate-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ClickDB
ports:
- "5432:5432"
restart: always
volumes:
- db:/var/lib/postgresql/data
networks:
- test-network
volumes:
db:
driver: local
networks:
test-network:
driver: bridge