-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 764 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (34 loc) · 764 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
version: "3.8"
services:
### Postgres Database ###
postgres:
image: postgres:10.4
ports:
- "35000:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
### Postgres Adminer ###
postgres_admin:
image: dpage/pgadmin4:4.28
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.de
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "5050:80"
### API Spring Boot ###
api:
build:
dockerfile: Dockerfile
context: ./spring-boot-dockerized/
depends_on:
- postgres
environment:
DATABASE_URL: postgresql://postgres:5432/db
DATABASE_USER: user
DATABASE_PASSWORD: password
ports:
- "8080:3100"