-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (46 loc) · 1.53 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
# debug docker compsoe
version: '3.1'
services:
server:
build: .
ports:
- "8080:3000"
depends_on:
- db
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_USERNAME=postgres
- DB_PASSWORD=example
- DB_DATABASE=postgres
- JWT_KEY=WzIyMywxOTYsNzAsMjI4LDYzLDcwLDExOCw0NSw4MiwxMDUsMTI0LDkwLDI1MCwxNDQsMjEyLDEzLDE0LDIwNyw3NSwyMjgsMjMyLDI0NywxNCwxMDIsMTkyLDIyMSw5MCwxNzIsMTM5LDE5MywxOTQsMTM5LDc0LDUxLDUsMjE3LDE5MiwyMjEsMTc4LDEzMywyMjEsMTQxLDE0NSwxNDksODEsMzQsMjAxLDEyLDYzLDE0MSwyNSwyNDMsMTEzLDE0OCwyNDgsNzEsNzMsNywyNDcsNTYsMTk4LDk4LDQyLDI0MywyNCwxNjgsMjU0LDg3LDI5LDg4LDE1MywyMDcsMTA3LDExMSwxMjEsMTA3LDE3Nyw5NCwxNjAsMjE2LDEsMTIzLDExOCwxLDM1LDI1MSw3MiwxOTIsMjQsMTQ4LDIxMywxODAsMjIwLDEzLDI3LDkyLDE5MiwxNzMsMTg4LDIzMSwzMCw4MiwyMTcsOTUsMTA4LDAsNzAsNzksMTU1LDE2OCwzMiwxMDIsMTczLDM1LDY3LDMzLDIzNywyNTEsMzUsMjQ5LDg0LDQxLDI1MCwxODEsNzAsMzAsNzksMTg4XQ==
restart: unless-stopped
swagger:
image: swaggerapi/swagger-ui
ports:
- "8082:8080"
environment:
- SWAGGER_JSON=/swagger.yml
volumes:
- ./api.yml:/swagger.yml
restart: unless-stopped
db:
image: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: example
POSTGRES_USER: postgres
POSTGRES_DB: postgres
# debug, remove when done
ports:
- "5432:5432"
# explore database, for debug only
adminer:
image: adminer
restart: always
ports:
- 8081:8080
volumes:
postgres_data: null