-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1013 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
48
49
50
51
52
networks:
inter-network:
driver: bridge
services:
db:
image: postgres:latest
env_file:
- .env
environment:
POSTGRES_DB: "currency"
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
ports:
- "5433:5432"
networks:
- inter-network
backend-java:
build:
context: ./Currency_Tracker_api
dockerfile: Dockerfile
depends_on:
- db
ports:
- "8089:8080"
networks:
- inter-network
env_file:
- .env
environment:
SPRING_PROFILES_ACTIVE: "docker"
server.front: "http://localhost:3000"
db.url: "db"
db.port: "5432"
db.name: ${DB_NAME}
db.user: ${DB_USER}
db.password: ${DB_PASS}
frontend-angular:
build:
context: ./Currency_Tracker_frontend
dockerfile: Dockerfile
environment:
API_URL: "http://localhost:8089/currencies"
depends_on:
- backend-java
ports:
- 3000:4200
networks:
- inter-network