improve docker dev
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
version: "3"
|
version: "2"
|
||||||
services:
|
services:
|
||||||
flaskfetfotos:
|
flaskfetfotos:
|
||||||
image: flask-fet-fotos
|
image: flask-fet-fotos
|
||||||
@@ -7,27 +7,16 @@ services:
|
|||||||
FLASK_APP: main.py
|
FLASK_APP: main.py
|
||||||
pages_root: /app/data
|
pages_root: /app/data
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/fotos/www:/app/data
|
- foto-data:/app/data
|
||||||
mysql:
|
|
||||||
image: jbergstroem/mariadb-alpine
|
|
||||||
environment:
|
|
||||||
SKIP_INNODB: "yes"
|
|
||||||
MYSQL_DATABASE: fet2020db
|
|
||||||
MYSQL_USER: user
|
|
||||||
MYSQL_PASSWORD: hgu
|
|
||||||
MYSQL_COLLATION: utf8_general_ci
|
|
||||||
MYSQL_CHARSET: utf8
|
|
||||||
volumes:
|
|
||||||
- mysql-volume:/var/lib/mysql
|
|
||||||
etherpadsql:
|
etherpadsql:
|
||||||
image: jbergstroem/mariadb-alpine
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
SKIP_INNODB: "no"
|
|
||||||
MYSQL_DATABASE: etherpaddb
|
MYSQL_DATABASE: etherpaddb
|
||||||
MYSQL_USER: user
|
MYSQL_USER: user
|
||||||
MYSQL_PASSWORD: hgu
|
MYSQL_PASSWORD: hgu
|
||||||
MYSQL_COLLATION: utf8_general_ci
|
MYSQL_COLLATION: utf8_general_ci
|
||||||
MYSQL_CHARSET: utf8
|
MYSQL_CHARSET: utf8
|
||||||
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||||
volumes:
|
volumes:
|
||||||
- ep-mysql-volume:/var/lib/mysql
|
- ep-mysql-volume:/var/lib/mysql
|
||||||
etherpad:
|
etherpad:
|
||||||
@@ -40,38 +29,14 @@ services:
|
|||||||
DB_USER: user
|
DB_USER: user
|
||||||
DB_PASS: hgu
|
DB_PASS: hgu
|
||||||
DB_CHARSET: utf8
|
DB_CHARSET: utf8
|
||||||
#ADMIN_PASSWORD: "AndiS"
|
|
||||||
#REQUIRE_AUTHENTICATION: "false"
|
|
||||||
TRUST_PROXY: "true"
|
TRUST_PROXY: "true"
|
||||||
REQUIRE_SESSION: "true"
|
REQUIRE_SESSION: "true"
|
||||||
#LOGLEVEL: "DEBUG"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- etherpadsql
|
- etherpadsql
|
||||||
volumes:
|
volumes:
|
||||||
- ./etherpad/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
- ./etherpad/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
||||||
# restart: always
|
|
||||||
# fet2020:
|
|
||||||
# image: fet2020django
|
|
||||||
# build: .
|
|
||||||
# environment:
|
|
||||||
# HOST_NAME: andis.2020.fet.at
|
|
||||||
# DEBUG: "False"
|
|
||||||
# SECRET_KEY: arguiq3ebhnjo
|
|
||||||
# MYSQL_USER: user
|
|
||||||
# MYSQL_PASSWORD: hgu
|
|
||||||
# MYSQL_PORT: 3306
|
|
||||||
# depends_on:
|
|
||||||
# - mysql
|
|
||||||
# ports:
|
|
||||||
# - "8106:8080"
|
|
||||||
# volumes:
|
|
||||||
# - ./fet2020:/app
|
|
||||||
# - ./assets:/app/assets
|
|
||||||
# - ./etherpad:/app/etherpad
|
|
||||||
# - ./deployment/nginx.conf:/etc/nginx/conf.d/fet2020.conf
|
|
||||||
# restart: always
|
|
||||||
theia:
|
theia:
|
||||||
image: theiaide/theia-python:latest
|
image: docker.triton2.fet.at/theia-fet2020:latest
|
||||||
volumes:
|
volumes:
|
||||||
- .:/home/project
|
- .:/home/project
|
||||||
- ./etherpad/APIKEY.txt:/srv/etherpad/APIKEY.txt
|
- ./etherpad/APIKEY.txt:/srv/etherpad/APIKEY.txt
|
||||||
@@ -83,4 +48,6 @@ services:
|
|||||||
- "8106:8080"
|
- "8106:8080"
|
||||||
volumes:
|
volumes:
|
||||||
ep-mysql-volume:
|
ep-mysql-volume:
|
||||||
mysql-volume:
|
driver: local
|
||||||
|
foto-data:
|
||||||
|
driver: local
|
||||||
53
docker-compose.dev.yml
Normal file
53
docker-compose.dev.yml
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
version: "2"
|
||||||
|
services:
|
||||||
|
flaskfetfotos:
|
||||||
|
image: docker.triton2.fet.at/flask-fet-fotos:latest
|
||||||
|
environment:
|
||||||
|
FLASK_DEBUG: 0
|
||||||
|
FLASK_APP: main.py
|
||||||
|
pages_root: /app/data
|
||||||
|
etherpadsql:
|
||||||
|
image: mariadb
|
||||||
|
environment:
|
||||||
|
MYSQL_DATABASE: etherpaddb
|
||||||
|
MYSQL_USER: user
|
||||||
|
MYSQL_PASSWORD: hgu
|
||||||
|
MYSQL_COLLATION: utf8_general_ci
|
||||||
|
MYSQL_CHARSET: utf8
|
||||||
|
volumes:
|
||||||
|
- ep-mysql-volume-andis:/var/lib/mysql
|
||||||
|
etherpad:
|
||||||
|
image: etherpad/etherpad
|
||||||
|
environment:
|
||||||
|
DB_TYPE: mysql
|
||||||
|
DB_HOST: etherpadsql
|
||||||
|
DB_PORT: 3306
|
||||||
|
DB_NAME: etherpaddb
|
||||||
|
DB_USER: user
|
||||||
|
DB_PASS: hgu
|
||||||
|
DB_CHARSET: utf8
|
||||||
|
TRUST_PROXY: "true"
|
||||||
|
REQUIRE_SESSION: "true"
|
||||||
|
depends_on:
|
||||||
|
- etherpadsql
|
||||||
|
volumes:
|
||||||
|
- /srv/etherpad/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
||||||
|
theia:
|
||||||
|
image: docker.triton2.fet.at/theia-fet2020:latest
|
||||||
|
volumes:
|
||||||
|
- /srv/andis_fet2020:/home/project
|
||||||
|
- /srv/etherpad/APIKEY.txt:/srv/etherpad/APIKEY.txt
|
||||||
|
- theia_usr:/usr/local
|
||||||
|
environment:
|
||||||
|
HOST_NAME: andis.triton2.fet.at
|
||||||
|
nginx:
|
||||||
|
image: docker.triton2.fet.at/nginxdev-fet2020:latest
|
||||||
|
ports:
|
||||||
|
- "8106:8080"
|
||||||
|
volumes:
|
||||||
|
ep-mysql-volume-andis:
|
||||||
|
driver: local
|
||||||
|
mysql-volume-andis:
|
||||||
|
driver: local
|
||||||
|
theia_usr:
|
||||||
|
driver: local
|
||||||
Reference in New Issue
Block a user