Commit 9ef4c385 authored by Lukas Böhm's avatar Lukas Böhm
Browse files

first try with docker compose

parent b8a9c80d
......@@ -14,5 +14,6 @@ COPY chiefsend.py chiefsend.py
ENV FLASK_APP chiefsend.py
EXPOSE 5000
EXPOSE 6379
ENTRYPOINT gunicorn -b :5000 --access-logfile - --error-logfile - chiefsend:app
version: "3.8"
services:
redis:
container_name: "chiefsend-redis"
image: "redis:latest"
ports:
- "6379:6379"
hostname: chiefsend-redis
volumes:
- type: volume
source: chiefsend-vol
target: /data
command: [ "redis-server", "--appendonly", "yes" ]
rq:
container_name: "chiefsend-tasks"
image: chiefsend:latest
entrypoint: rq worker --with-scheduler --url redis://chiefsend-redis
web:
container_name: "chiefsend-web"
build: .
image: chiefsend:latest
ports:
- "8000:5000"
volumes:
- type: volume
source: chiefsend-vol
target: /home/chiefsend/data
volumes:
chiefsend-vol:
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment