@@ -12,7 +12,6 @@ docker-compose*
test
screenshot
-migrations
README.md
LICENSE
@@ -1,7 +1,5 @@
FROM python:2.7
-ENV FLASK_APP waller.py
-
WORKDIR /usr/app/
COPY ./requirements/prod.txt .
@@ -10,6 +8,7 @@ RUN mkdir logs
RUN pip install -r prod.txt -i https://mirrors.aliyun.com/pypi/simple
+ENV FLASK_APP waller.py
COPY . .
RUN flask db upgrade
@@ -0,0 +1,54 @@
+version: "3.7"
+
+services:
+ db:
+ image: mysql
+ ports:
+ - 0.0.0.0:3306:3306
+ expose:
+ - 3306
+ command: --default-authentication-plugin=mysql_native_password
+ environment:
+ MYSQL_ROOT_PASSWORD: walle
+ MYSQL_DATABASE: walle
+ volumes:
+ - ${HOME}/.walle/mysql:/var/lib/mysql
+ networks:
+ - walle-net
+ restart: always
+ adminer:
+ image: adminer
+ - 8080:8080
+ web:
+ build: ./
+ depends_on:
+ - db
+ - 5000
+ - WALLE_SECRET="guess me out"
+ gateway:
+ image: nginx
+ - 0.0.0.0:80:80
+ - ./fe/:/data/web/:ro
+ - ./gateway/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
+ walle-net:
+networks:
+ walle-net: ~