-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
48 lines (43 loc) · 1 KB
/
docker-compose.dev.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
version: "3.8"
services:
awsome-books:
container_name: awsome-books
build:
context: .
target: production
ports:
- 8080:8080
# environment:
# - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/awsome_books
# - SPRING_DATASOURCE_USERNAME=dev-postgres
# - SPRING_DATASOURCE_PASSWORD=dev-postgres
# - SPRING_PROFILES_ACTIVE=dev
# develop:
# watch:
# - action: rebuild
# path: .
depends_on:
- db
db:
image: postgres:14.12
container_name: postgresql
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=dev-postgres
- POSTGRES_PASSWORD=dev-postgres
- POSTGRES_DB=awsome_books
volumes:
- db-data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:8
container_name: pgadmin
restart: always
ports:
- 8888:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pgadmin
volumes:
db-data: