-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (39 loc) · 948 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
43
44
version: '3.1'
services:
db:
image: postgres:14
ports:
- "5432:5432"
volumes:
- data:/var/lib/postgresql
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_NAME}
api:
image: christophbde/desks-api:latest
#build: ./desks-api
environment:
DB_HOST: "db"
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
BASE_URL: ${BASE_URL}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
OAUTH_TOKEN_URL: ${OAUTH_TOKEN_URL}
OAUTH_AUTHORIZATION_URL: ${OAUTH_AUTHORIZATION_URL}
OAUTH_USERINFO_URL: ${OAUTH_USERINFO_URL}
ports:
- "8080:8080"
depends_on:
- db
web-app:
image: christophbde/desks-web-app:latest
#build: ./desks-web-app
ports:
- "5000:5000"
depends_on:
- api
volumes:
data: