-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.template
63 lines (62 loc) · 1.44 KB
/
docker-compose.yml.template
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
56
57
58
59
60
61
62
63
version: '3.7'
services:
api:
entrypoint: bash run.sh
restart: unless-stopped
volumes:
- ./:/fyle-qbd-api
- /tmp:/tmp
ports:
- 8000:8000
depends_on:
- db
environment:
SECRET_KEY: thisisthedjangosecretkey
ALLOWED_HOSTS: "*"
DEBUG: "False"
FYLE_TOKEN_URI: https://localhost:1234/oauth/token
FYLE_BASE_URL: https://localhost:1234
API_URL: http://localhost:8000/api
FYLE_CLIENT_ID: client_id
FYLE_CLIENT_SECRET: client_secret
DB_NAME: qbd_db
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: db
DB_PORT: 5432
worker:
entrypoint: python manage.py qcluster
restart: unless-stopped
volumes:
- ./:/fyle-qbd-api
- /tmp:/tmp
ports:
- 8000:8000
depends_on:
- api
- db
environment:
SECRET_KEY: thisisthedjangosecretkey
ALLOWED_HOSTS: "*"
DEBUG: "False"
FYLE_TOKEN_URI: https://localhost:1234/oauth/token
FYLE_BASE_URL: https://localhost:1234
API_URL: http://localhost:8000/api
FYLE_CLIENT_ID: client_id
FYLE_CLIENT_SECRET: client_secret
DB_NAME: qbd_db
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: db
DB_PORT: 5432
db:
image: "postgres:latest"
environment:
POSTGRES_DB: dummy
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- data:/var/lib/postgresql/data/
volumes:
api:
data: