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: ...@@ -6,32 +6,58 @@ services:
image: "redis:latest" image: "redis:latest"
ports: ports:
- "6379:6379" - "6379:6379"
hostname: chiefsend-redis # hostname: chiefsend-redis
volumes: volumes:
- type: volume # - type: volume
source: chiefsend-vol # source: chiefsend-vol
target: /data # target: /data
- type: bind
source: ./data
target: /home/chiefsend/data
command: [ "redis-server", "--appendonly", "yes" ] command: [ "redis-server", "--appendonly", "yes" ]
rq: rq:
container_name: "chiefsend-tasks" container_name: "chiefsend-tasks"
image: "chiefsend:latest" image: "chiefsend:latest"
volumes: volumes:
- type: volume - type: bind
source: chiefsend-vol source: ./data
target: /home/chiefsend/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: web:
container_name: "chiefsend-web" container_name: "chiefsend-web"
build: . build: .
image: "chiefsend:latest" image: "chiefsend:latest"
deploy:
resources:
limits:
memory: 500M
ports: ports:
- "8000:5000" - "8000:5000"
volumes: volumes:
- type: volume - type: bind
source: chiefsend-vol source: ./data
target: /home/chiefsend/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: volumes:
chiefsend-vol: chiefsend-vol:
click==7.1.2 Flask
Flask==1.1.2 Flask-SQLAlchemy
Flask-SQLAlchemy==2.4.4 rq
Flask-WTF==0.14.3 redis
itsdangerous==1.1.0 Flask-WTF
Jinja2==2.11.2 python-dotenv
MarkupSafe==1.1.1 \ No newline at end of file
redis==3.5.3
rq==1.5.2
six==1.15.0
SQLAlchemy==1.3.20
Werkzeug==1.0.1
WTForms==2.3.3
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