Commit fd4497c4 authored by Lukas Böhm's avatar Lukas Böhm 🎱
Browse files

some more tries with docker

parent c0538853
......@@ -6,32 +6,58 @@ services:
image: "redis:latest"
ports:
- "6379:6379"
hostname: chiefsend-redis
# hostname: chiefsend-redis
volumes:
- type: volume
source: chiefsend-vol
target: /data
# - type: volume
# source: chiefsend-vol
# target: /data
- type: bind
source: ./data
target: /home/chiefsend/data
command: [ "redis-server", "--appendonly", "yes" ]
rq:
container_name: "chiefsend-tasks"
image: "chiefsend:latest"
volumes:
- type: volume
source: chiefsend-vol
- type: bind
source: ./data
target: /home/chiefsend/data
entrypoint: rq worker --with-scheduler --url ${REDIS_URL} # connect to redis hostname
# - type: volume
# source: chiefsend-vol
# target: /home/chiefsend/data
#entrypoint: rq worker --with-scheduler --url ${REDIS_URL}
entrypoint: rq worker --with-scheduler
web:
container_name: "chiefsend-web"
build: .
image: "chiefsend:latest"
deploy:
resources:
limits:
memory: 500M
ports:
- "8000:5000"
volumes:
- type: volume
source: chiefsend-vol
- type: bind
source: ./data
target: /home/chiefsend/data
# - type: volume
# source: chiefsend-vol
# target: /home/chiefsend/data
nginx:
# docker run --name nginxtest --rm --mount type=bind,source="$(pwd)",target=/usr/share/nginx/html -d -p 6969:80 nginx:latest
container_name: "chiefsend-nginx"
image: "nginx:latest"
ports:
- "6969:80"
volumes:
- type: bind
source: ./app/static
target: /usr/share/nginx/html
volumes:
chiefsend-vol:
click==7.1.2
Flask==1.1.2
Flask-SQLAlchemy==2.4.4
Flask-WTF==0.14.3
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
redis==3.5.3
rq==1.5.2
six==1.15.0
SQLAlchemy==1.3.20
Werkzeug==1.0.1
WTForms==2.3.3
Flask
Flask-SQLAlchemy
rq
redis
Flask-WTF
python-dotenv
\ 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