-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 999 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 999 Bytes
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.2'
services:
postgres:
restart: 'always'
ports:
- '5432:5432'
environment:
- "PSQL_DB_USER=psql_db_user"
- "PSQL_DB_PASSWORD=x8TTj4hnfA8T4Fm"
- "PSQL_DB_DATABASE=psql_db"
- "POSTGRES_PASSWORD=H7n5GZTpAz5aN8a"
build: './psql'
image: postgres:latest
container_name: postgres_container
volumes:
- psql_db_volume:/var/lib/postgresql/data
networks:
infranet:
aliases:
- 'postgres'
spring-boot-rest:
restart: 'always'
depends_on:
- "postgres"
ports:
- '8080:8080'
environment:
- "PSQL_DB_HOST=postgres"
- "PSQL_DB_PORT=5432"
- "PSQL_DB_USER=psql_db_user"
- "PSQL_DB_PASSWORD=x8TTj4hnfA8T4Fm"
- "PSQL_DB_NAME=psql_db"
build: './app'
image: springboot-rest-jpa:latest
container_name: springboot_container
networks:
infranet:
aliases:
- 'springboot'
networks:
infranet:
volumes:
psql_db_volume: