-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1006 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
41
42
version: '2.1'
services:
db:
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- ./db-init.sh:/docker-entrypoint-initdb.d/init.sh
ports:
- "5432:5432"
migrate:
image: freakygranny/lpad-api:0.0.1
command: ["/app/lpad", "migrate", "up"]
environment:
- DB_USERNAME=lpad
- DB_PASSWORD=qwerty123
- DB_NAME=launchpad
- DB_HOST=db
- VK_APP_ID=deadbief
- VK_CLIENT_SECRET=deadbief
- VK_REDIRECT_URI=deadbief
- JWT_SECRET=deadbief
ports:
- "1323:1323"
depends_on:
- db
api:
image: freakygranny/lpad-api:0.0.1
environment:
- DB_USERNAME=lpad
- DB_PASSWORD=qwerty123
- DB_NAME=launchpad
- DB_HOST=db
- VK_APP_ID=deadbief
- VK_CLIENT_SECRET=deadbief
- VK_REDIRECT_URI=http://localhost:8080/login
- JWT_SECRET=superSecret
ports:
- "1323:1323"
depends_on:
- db