-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 916 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
version: '3'
services:
front-end:
image: tinsae/waa-final-project-front-end:1.0.1
ports:
- "3000:3000"
depends_on:
- back-end
tty: true
stdin_open: true
environment:
- VITE_BASE_URL=http://localhost:8080
back-end:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
depends_on:
- db
tty: true
stdin_open: true
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/mydb
- CLOUD_AWS_CREDENTIALS_ACCESS_KEY=AKIA4VFM3RR77BXUAMRS
- CLOUD_AWS_CREDENTIALS_SECRET_KEY=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
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=mydb
# ports:
# - '5432:5432'
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local