-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
47 lines (47 loc) · 1016 Bytes
/
docker-compose.yaml
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.9"
services:
back-office:
image: back-office-image
build:
context: .
dockerfile: ./build/docker/back-office/Dockerfile
ports:
- 3002:3000
environment:
DATABASE_URL: postgres://postgres:password@db:5432/MusicShop
depends_on:
- db
rental:
image: rental-image
build:
context: .
dockerfile: ./build/docker/rental/Dockerfile
ports:
- 3001:3000
environment:
DATABASE_URL: postgres://postgres:password@db:5432/MusicShop
depends_on:
- db
- back-office
rental-frontend:
image: rental-app
build:
context: .
dockerfile: ./build/docker/rental-app/Dockerfile
ports:
- 3000:3000
depends_on:
- rental
- back-office
db:
image: postgres:latest
environment:
POSTGRES_DB: MusicShop
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5433:5432
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: