-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (42 loc) · 973 Bytes
/
docker-compose.yaml
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.3'
services:
postgres:
image: postgres:11.5
container_name: postgres
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
ports:
- "5432:5432"
volumes:
- ./target/postgres/data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
container_name: pg_admin
environment:
- PGADMIN_DEFAULT_PASSWORD=postgres
ports:
- "5555:80"
volumes:
- ./target/pgadmin/data:/var/lib/pgadmin
links:
- postgres
demo-spring:
container_name: demo-spring
depends_on:
- postgres
build:
context: .
links:
- postgres
ports:
- 8080:8080
restart: always
environment:
- DATABASE_ADDRESS=postgres
- DATABASE_PORT=5432
- DATABASE_NAME=postgres
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres