-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
55 lines (49 loc) · 1.26 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
codev-db:
image: postgres
container_name: codev-db
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: codev-db
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
networks:
- codev-network
codev-api:
image: letscodev/codev-api:v8
container_name: codev-api
environment:
DATABASE_URL: jdbc:postgresql://autorack.proxy.rlwy.net:40898/railway
USERNAME: postgres
PASSWORD: XHLlATqGZpnXfPICixQRrznPDAlifhcq
ports:
- "8081:8081"
networks:
- codev-network
frontend:
image: letscodev/frontend
container_name: codev-frontend
ports:
- "8000:80"
networks:
- codev-network
# 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
volumes:
db-data:
networks:
codev-network:
driver: bridge