-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-pipeline.yml
51 lines (49 loc) · 1.39 KB
/
docker-compose-pipeline.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
version: '3.7'
services:
api:
build:
context: ./
args:
CI: ENABLED
entrypoint: bash run.sh
restart: unless-stopped
volumes:
- ./:/fyle-qbo-api
depends_on:
- db
environment:
SECRET_KEY: thisisthedjangosecretkey
ALLOWED_HOSTS: "*"
DEBUG: "False"
NO_WORKERS: 1
API_URL: http://localhost:8000/api
DATABASE_URL: postgres://postgres:postgres@db:5432/qbo_db
DB_HOST: db
FYLE_BASE_URL: ${FYLE_BASE_URL}
FYLE_CLIENT_ID: ${FYLE_CLIENT_ID}
FYLE_CLIENT_SECRET: ${FYLE_CLIENT_SECRET}
FYLE_REFRESH_TOKEN: ${FYLE_REFRESH_TOKEN}
FYLE_TOKEN_URI: ${FYLE_TOKEN_URI}
FYLE_SERVER_URL: ${FYLE_SERVER_URL}
QBO_CLIENT_ID: ${QBO_CLIENT_ID}
QBO_CLIENT_SECRET: ${QBO_CLIENT_SECRET}
QBO_REDIRECT_URI: ${QBO_REDIRECT_URI}
QBO_TOKEN_URI: ${QBO_TOKEN_URI}
QBO_ENVIRONMENT: SANDBOX
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
E2E_TESTS_CLIENT_SECRET: ${E2E_TESTS_CLIENT_SECRET}
E2E_TESTS_REALM_ID: ${E2E_TESTS_REALM_ID}
INTEGRATIONS_SETTINGS_API: http://localhost:8006/api
QBO_APP_URL: https://lolo.qbo.com
db:
image: "postgres:15"
environment:
POSTGRES_DB: dummy
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- data:/var/lib/postgresql/data/
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
api:
data: