Added docker-compose and config files
This commit is contained in:
16
deploy/aktienbot/.env.api
Normal file
16
deploy/aktienbot/.env.api
Normal file
@@ -0,0 +1,16 @@
|
||||
BOT_API_KEY=
|
||||
SECRET_KEY=
|
||||
|
||||
MYSQL_USER=
|
||||
MYSQL_PASSWORD=
|
||||
MYSQL_HOST=
|
||||
MYSQL_PORT=
|
||||
MYSQL_DATABASE=
|
||||
|
||||
BOT_EMAIL=
|
||||
BOT_USERNAME=
|
||||
BOT_PASSWORD=
|
||||
|
||||
ADMIN_EMAIL=
|
||||
ADMIN_USERNAME=
|
||||
ADMIN_PASSWORD=
|
3
deploy/aktienbot/.env.bot
Normal file
3
deploy/aktienbot/.env.bot
Normal file
@@ -0,0 +1,3 @@
|
||||
BOT_API_KEY=
|
||||
NEWS_API_KEY=
|
||||
SECRET_KEY=
|
62
deploy/aktienbot/docker-compose.yml
Normal file
62
deploy/aktienbot/docker-compose.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
aktienbot_fe:
|
||||
image: registry.flokaiser.com/aktienbot/frontend
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.http.routers.aktienbot_fe.rule: Host(`gruppe1.testsites.info`)
|
||||
traefik.http.routers.aktienbot_fe.middlewares: secHeaders@file
|
||||
traefik.http.routers.aktienbot_fe.priority: 40
|
||||
traefik.http.routers.aktienbot_fe.tls: true
|
||||
traefik.http.routers.aktienbot_fe.tls.certresolver: myresolver
|
||||
|
||||
aktienbot_api:
|
||||
image: registry.flokaiser.com/aktienbot/api
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.http.routers.aktienbot_api.rule: Host(`gruppe1.testsites.info`) && PathPrefix(`/api`)
|
||||
traefik.http.routers.aktienbot_api.middlewares: secHeaders@file
|
||||
traefik.http.routers.aktienbot_api.priority: 50
|
||||
traefik.http.routers.aktienbot_api.tls: true
|
||||
traefik.http.routers.aktienbot_api.tls.certresolver: myresolver
|
||||
depends_on:
|
||||
- mariadb
|
||||
env_file:
|
||||
- ${PWD}/.env.api
|
||||
|
||||
aktienbot_bot:
|
||||
image: registry.flokaiser.com/aktienbot/bot
|
||||
env_file:
|
||||
- ${PWD}/.env.bot
|
||||
|
||||
mariadb:
|
||||
image: mariadb
|
||||
volumes:
|
||||
- mariadb_data:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=sBvKtMY7ej9*dETatTtk#uRd5f*5wJYovfdDJDa&
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin
|
||||
environment:
|
||||
- PMA_HOST=mariadb
|
||||
- PMA_ABSOLUTE_URI=http://gruppe1.testsites.info/phpmyadmin/
|
||||
labels:
|
||||
traefik.enable: true
|
||||
traefik.http.routers.phpmyadmin.rule: Host(`gruppe1.testsites.info`) && PathPrefix(`/phpmyadmin`)
|
||||
traefik.http.routers.phpmyadmin.middlewares: secHeaders@file
|
||||
traefik.http.routers.phpmyadmin.priority: 50
|
||||
traefik.http.routers.phpmyadmin.middlewares: strip_phpmyadmin
|
||||
traefik.http.routers.phpmyadmin.tls: true
|
||||
traefik.http.routers.phpmyadmin.tls.certresolver: myresolver
|
||||
|
||||
traefik.http.middlewares.strip_phpmyadmin.stripprefix.prefixes: /phpmyadmin
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: net
|
||||
volumes:
|
||||
portainer_data:
|
||||
mariadb_data:
|
Reference in New Issue
Block a user