-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
37 lines (34 loc) · 947 Bytes
/
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
services:
backend:
image: brenoduarte655/codev-api:2.1.1
restart: unless-stopped
environment:
DATABASE_URL: jdbc:postgresql://db:5432/codev-db
USERNAME: postgres
PASSWORD: postgres
ports:
- 8080:8080
depends_on:
db:
condition: service_started
# access on localhost:8081
swagger-ui:
image: swaggerapi/swagger-ui
container_name: swagger_ui_container
ports:
- 8081:8081
volumes:
- ./doc:/usr/share/nginx/html/doc
environment:
PORT: 8081
API_URL: doc/openapi.yaml
db:
container_name: postgres
image: postgres:14
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: codev-db
ports:
- 5432:5432