-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
40 lines (38 loc) · 923 Bytes
/
docker-compose.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
version: '3'
services:
api-editor:
container_name: api-editor
image: swaggerapi/swagger-editor
platform: linux/amd64
volumes:
- ./app/src/main/api/http-api/openapi.yml:/app/src/main/api/http-api/openapi.yml
ports:
- "80:8080"
environment:
- SWAGGER_FILE=/app/src/main/api/http-api/openapi.yml
pg:
image: postgres:latest
container_name: postgres_container
environment:
POSTGRES_USER: pg-user
POSTGRES_PASSWORD: pg-pwd
POSTGRES_DB: local-db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin_container
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pgadmin
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "5050:80"
depends_on:
- pg
volumes:
pgdata:
pgadmin_data: