comfy/wagtail_store/docker-compose.yml

99 wiersze
1.8 KiB
YAML

2023-05-03 18:17:49 +00:00
version: "3.8"
services:
2023-08-03 20:01:40 +00:00
db:
image: postgres
restart: always
environment:
- POSTGRES_ROOT_PASSWORD
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- ../postgres/:/var/lib/postgresql
env_file:
- .env
rabbit:
hostname: rabbit
image: rabbitmq:3.6.0
environment:
- RABBITMQ_DEFAULT_USER
- RABBITMQ_DEFAULT_PASS
2023-10-31 22:35:36 +00:00
# ports:
# - "5672:5672" # We forward this port because it's useful for debugging
# - "15672:15672" # Here, we can access RabbitMQ management plugin
2023-08-03 20:01:40 +00:00
smtp-server:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
2023-05-03 18:17:49 +00:00
comfy:
restart: always
depends_on:
- smtp-server
- db
2023-05-03 18:17:49 +00:00
build:
dockerfile: Dockerfile.local
context: ./
2023-06-19 18:51:25 +00:00
user: "${UID}:${GID}"
2023-05-03 18:17:49 +00:00
ports:
- "8001:8000"
2023-05-03 18:17:49 +00:00
volumes:
2023-05-03 18:21:28 +00:00
- ./:/app
- media:/app/media
2023-05-16 18:03:55 +00:00
environment:
- SECRET_KEY
- DATABASE_URL
env_file:
- .env
stdin_open: true
tty: true
2023-08-03 20:01:40 +00:00
beat:
build:
context: .
dockerfile: Dockerfile
command: celery -A artel beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- ./:/app
env_file:
- .env
2023-05-03 18:17:49 +00:00
environment:
2023-08-03 20:01:40 +00:00
- SECRET_KEY
- DATABASE_URL
depends_on:
- comfy
- rabbit
worker:
build:
context: .
dockerfile: Dockerfile
command: celery -A artel worker -l info
2023-05-03 18:17:49 +00:00
volumes:
2023-08-03 20:01:40 +00:00
- ./:/app
2023-09-16 11:27:05 +00:00
- ./media:/app/media
2023-05-16 18:03:55 +00:00
env_file:
- .env
2023-08-03 20:01:40 +00:00
environment:
- SECRET_KEY
- DATABASE_URL
depends_on:
- comfy
- rabbit
- beat
adminer:
image: adminer
restart: always
ports:
- "8002:8080"
2023-08-03 20:01:40 +00:00
volumes:
media:
db:
2023-08-03 20:01:40 +00:00
rabbitmq_data: