-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.template
70 lines (65 loc) · 1.71 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
64
65
66
67
68
69
70
version: '3.7'
services:
api:
build: ./
entrypoint: bash run.sh
restart: unless-stopped
volumes:
- ./:/fyle-xero-api
ports:
- 8000:8000
depends_on:
- db
environment:
SECRET_KEY: thisisthedjangosecretkey
ALLOWED_HOSTS: "*"
DEBUG: "False"
APP_URL: http://localhost:4200
API_URL: http://localhost:8000/api
DATABASE_URL: postgres://postgres:postgres@db:5432/xero_db
FYLE_BASE_URL:
FYLE_CLIENT_ID:
FYLE_CLIENT_SECRET:
FYLE_TOKEN_URI:
FYLE_APP_URL:
XERO_BASE_URL: https://api.xero.com
XERO_CLIENT_ID:
XERO_CLIENT_SECRET:
XERO_REDIRECT_URI: http://localhost:4200/workspaces/xero/callback
XERO_TOKEN_URI: https://identity.xero.com/connect/token
qcluster:
build: ./
entrypoint: python manage.py qcluster
restart: unless-stopped
volumes:
- ./:/fyle-xero-api
depends_on:
- db
- api
environment:
SECRET_KEY: thisisthedjangosecretkey
ALLOWED_HOSTS: "*"
DEBUG: "False"
APP_URL: http://localhost:4200
API_URL: http://localhost:8000/api
DATABASE_URL: postgres://postgres:postgres@db:5432/xero_db
FYLE_BASE_URL:
FYLE_CLIENT_ID:
FYLE_CLIENT_SECRET:
FYLE_TOKEN_URI:
FYLE_APP_URL:
XERO_BASE_URL: https://api.xero.com
XERO_CLIENT_ID:
XERO_CLIENT_SECRET:
XERO_REDIRECT_URI: http://localhost:4200/workspaces/xero/callback
XERO_TOKEN_URI: https://identity.xero.com/connect/token
db:
image: "postgres:15"
environment:
POSTGRES_PASSWORD: postgres
volumes:
- data:/var/lib/postgresql/data/
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
api:
data: