-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
executable file
·56 lines (52 loc) · 1.15 KB
/
compose.yml
File metadata and controls
executable file
·56 lines (52 loc) · 1.15 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
51
52
53
54
55
56
version: '3.9'
services:
# Spring Boot App
contacts-api:
container_name: contacts-api-java
build:
context: .
dockerfile: Dockerfile
platform: linux/amd64
environment:
DB_USER: postgres
DB_PASS: 12345
DB_HOST: contacts-api-db
DB_PORT: 5432
DB_NAME: contacts-api
ports:
- "8080:8080"
depends_on:
- contacts-api-db
networks:
- contacts-api
# Database
contacts-api-db:
container_name: contacts-api-db-postgres
image: postgres
restart: unless-stopped
ports:
- "54320:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 12345
POSTGRES_DB: contacts-api
networks:
- contacts-api
# Management Database
contacts-api-pgadmin:
container_name: contacts-api-pgadmin
image: dpage/pgadmin4
restart: unless-stopped
depends_on:
- contacts-api-db
ports:
- "8081:80"
environment:
PGADMIN_DEFAULT_EMAIL: 'contacts-api@domain.com'
PGADMIN_DEFAULT_PASSWORD: 12345
networks:
- contacts-api
networks:
# Contacts API Network
contacts-api:
name: contacts-api-network