This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (66 loc) · 2.34 KB
/
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
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'
# networks:
# web:
# external: true
services:
test-api:
# build: ./app
# image: mikeryan56/test-api:2020-12-12-python38-rc
image: mikeryan56/test-api:latest
ports:
- "5000"
volumes:
# - .:/code
- test-api:/src
# - test-api:/src/logging
environment:
# This is used to determin if .env or other external config is used. True is for a .env file and false for docker enviroment
# option: dotenv, docker
USE_ENV: 'docker'
# Application information
TITLE: 'Test API'
DESCRIPTION: 'Checklist APIs'
APP_VERSION: '21.11.20'
OWNER: 'Mike'
WEBSITE: https://devsetgo.com
# Demo settings
CREATE_SAMPLE_DATA: 'True'
NUMBER_TASKS: 10
NUMBER_USERS: 10
NUMBER_GROUPS: 10
# Cofigurations
HOST_DOMAIN: 'https://test-api.devsetgo.com'
#prd for production or dev for development
RELEASE_ENV: 'prd'
# Turn HTTPS Middleware on (True) or off (False)
HTTPS_ON: 'False'
PROMETHEUS_ON: 'True'
ADD_DEFAULT_GROUP: 'True'
SQLALCHEMY_DATABASE_URI: 'sqlite:///sqlite_db/api.db'
# Loguru settings
LOGURU_RETENTION: '10 days'
LOGURU_ROTATION: '100 MB'
LOGURU_LOGGING_LEVEL: 'INFO'
# Workers - Set to 1 for CPUs x 2 + 1
WORKERS: 2
# Leave intact for license
CREATED_BY: 'Mike Ryan'
LICENSE_TYPE: 'MIT'
LICENSE_LINK: https://github.com/devsetgo/test-api/blob/master/LICENSE
#if using traefik
labels:
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.ta-web.rule=Host(`test-api.devsetgo.com`)" # <== Your Domain Name goes here for the http rule
- "traefik.http.routers.ta-web.entrypoints=web" # <== Defining the entrypoint for http, **ref: line 30
- "traefik.http.routers.ta-web.middlewares=redirect@file" # <== This is a middleware to redirect to https
- "traefik.http.routers.ta-secured.rule=Host(`test-api.devsetgo.com`)" # <== Your Domain Name for the https rule
- "traefik.http.routers.ta-secured.entrypoints=web-secured" # <== Defining entrypoint for https, **ref: line 31
- "traefik.http.routers.ta-secured.tls.certresolver=mytlschallenge" # <== Defining certsresolvers for https
networks:
- web
networks:
web:
external: true
volumes:
test-api:
external: false