-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1017 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
version: '3'
services:
frontend:
build:
context: ./frontend
dockerfile: developement.Dockerfile
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=GroceryMateDB;username=postgres;password=postgres'
networks:
- test-network
db:
image: postgres:15-alpine
container_name: grocerymate-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=GroceryMateDB
ports:
- '5433:5432'
restart: always
volumes:
- db:/var/lib/postgresql/data
networks:
- test-network
volumes:
db:
driver: local
networks:
test-network:
driver: bridge