AstroJS/windows/docker-compose.yml

37 lines
832 B
YAML
Raw Normal View History

2021-09-05 15:16:37 +00:00
version: '3.9'
services:
redis:
container_name: astrojsdev_redis
build: redis
web:
container_name: astrojsdev_app
image: astrojs/app
hostname: astrojs.default
build:
context: ../
dockerfile: windows/app/Dockerfile
2022-04-05 09:13:40 +00:00
environment:
2022-04-09 13:32:42 +00:00
DEBUG: "1"
2022-04-05 09:13:40 +00:00
REDIS_CONN: redis://:@redis:6379/9
2021-09-05 15:16:37 +00:00
command: [ "python", "main.py" ] # [ "ping", "127.0.0.1", "-n", "9999" ]
depends_on:
- redis
ports:
- 5000:5000
volumes:
2022-04-05 09:13:40 +00:00
- cache:C:/app/cache
2021-09-05 15:16:37 +00:00
tasks:
container_name: astrojsdev_compiler
image: astrojs/app
2022-04-05 09:13:40 +00:00
environment:
REDIS_CONN: redis://:@redis:6379/9
2021-09-05 15:16:37 +00:00
command: [ "celery", "-A", "botanjs.service.jwork", "worker", "-l", "info", "--pool=solo" ]
depends_on:
- redis
- web
volumes:
2022-04-05 09:13:40 +00:00
- cache:C:/app/cache
2021-09-05 15:16:37 +00:00
volumes:
cache: