-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1.04 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
version: '3.9'
services:
postgres:
image: postgres:17-alpine
container_name: tinysteps-postgres
environment:
POSTGRES_DB: tinystepsdb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: tinysteps@nexorian.1
ports:
- "5432:5432"
networks:
- tinysteps-network
volumes:
- pgdata:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
container_name: tinysteps-app
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/tinystepsdb
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: tinysteps@nexorian.1
SPRING_DEVTOOLS_RESTART_ENABLED: "true"
depends_on:
- postgres
networks:
- tinysteps-network
volumes:
- .:/app # mount source for hot reload
- ~/.m2:/root/.m2 # cache Maven dependencies
command: ./mvnw spring-boot:run -Dspring-boot.run.fork=false
networks:
tinysteps-network:
driver: bridge
volumes:
pgdata: