-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.08 KB
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
version: "3.9"
services:
db:
image: postgres:16
container_name: angularspringoracle-db
environment:
POSTGRES_DB: appdb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: YourPassword123
ports:
- "5432:5432"
api:
build:
context: ./api
dockerfile: Dockerfile
depends_on:
- db
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/appdb
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: YourPassword123
ports:
- "8080:8080"
flyway:
image: flyway/flyway
command: -url=jdbc:postgresql://db:5432/app -user=postgres -password=pass migrate
volumes:
- ./db/migration:/flyway/sql
depends_on:
- db
frontend:
image: node:20-alpine
working_dir: /usr/src/app
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
command: sh -c "npm install && npm run start -- --host 0.0.0.0 --poll 2000"
ports:
- "4200:4200"
depends_on:
- api
volumes:
postgres-data: