2023-10-16 17:11:34 +03:00
|
|
|
version: "3"
|
2023-05-21 02:20:55 +03:00
|
|
|
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
env_file:
|
2023-05-21 09:32:22 +03:00
|
|
|
- ./frontend/.env
|
2023-05-21 02:20:55 +03:00
|
|
|
build:
|
|
|
|
context: frontend
|
2023-09-15 02:09:26 +03:00
|
|
|
dockerfile: Dockerfile
|
2023-05-21 02:20:55 +03:00
|
|
|
container_name: web
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2023-08-18 11:18:29 +03:00
|
|
|
|
2023-07-17 09:57:27 +03:00
|
|
|
backend-core:
|
2023-11-13 12:14:24 +03:00
|
|
|
image: backend-base
|
2023-05-21 02:20:55 +03:00
|
|
|
env_file:
|
2023-08-19 14:32:16 +03:00
|
|
|
- ./backend/.env
|
2023-05-21 02:20:55 +03:00
|
|
|
build:
|
2023-08-19 14:32:16 +03:00
|
|
|
context: backend
|
2023-07-18 17:34:08 +03:00
|
|
|
dockerfile: Dockerfile
|
2023-07-17 09:57:27 +03:00
|
|
|
container_name: backend-core
|
2023-05-21 02:20:55 +03:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-19 14:32:16 +03:00
|
|
|
- ./backend/:/code/
|
2023-09-14 12:56:59 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- worker
|
2023-10-16 17:11:34 +03:00
|
|
|
- beat
|
2023-09-14 12:56:59 +03:00
|
|
|
ports:
|
|
|
|
- 5050:5050
|
2023-10-16 17:11:34 +03:00
|
|
|
|
2023-09-14 12:56:59 +03:00
|
|
|
redis:
|
|
|
|
image: redis:latest
|
|
|
|
container_name: redis
|
2023-08-18 11:18:29 +03:00
|
|
|
restart: always
|
2023-09-14 12:56:59 +03:00
|
|
|
ports:
|
|
|
|
- 6379:6379
|
2023-10-16 17:11:34 +03:00
|
|
|
|
2023-09-14 12:56:59 +03:00
|
|
|
worker:
|
2023-11-13 12:14:24 +03:00
|
|
|
image: backend-base
|
2023-08-18 11:18:29 +03:00
|
|
|
env_file:
|
2023-08-19 14:32:16 +03:00
|
|
|
- ./backend/.env
|
2023-08-18 11:18:29 +03:00
|
|
|
build:
|
2023-08-19 14:32:16 +03:00
|
|
|
context: backend
|
2023-08-18 11:18:29 +03:00
|
|
|
dockerfile: Dockerfile
|
2023-09-14 12:56:59 +03:00
|
|
|
container_name: worker
|
|
|
|
command: celery -A celery_worker worker -l info
|
2023-08-18 11:18:29 +03:00
|
|
|
restart: always
|
2023-09-14 12:56:59 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2023-08-18 11:18:29 +03:00
|
|
|
volumes:
|
2023-08-19 14:32:16 +03:00
|
|
|
- ./backend/:/code/
|
2023-10-16 17:11:34 +03:00
|
|
|
|
|
|
|
beat:
|
2023-11-13 12:14:24 +03:00
|
|
|
image: backend-base
|
2023-10-16 17:11:34 +03:00
|
|
|
env_file:
|
|
|
|
- ./backend/.env
|
|
|
|
build:
|
|
|
|
context: backend
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: beat
|
|
|
|
command: celery -A celery_worker beat -l info
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
- ./backend/:/code/
|
|
|
|
|
2023-09-14 12:56:59 +03:00
|
|
|
flower:
|
2023-11-13 12:14:24 +03:00
|
|
|
image: backend-base
|
2023-08-18 11:18:29 +03:00
|
|
|
env_file:
|
2023-08-19 14:32:16 +03:00
|
|
|
- ./backend/.env
|
2023-08-18 11:18:29 +03:00
|
|
|
build:
|
2023-08-19 14:32:16 +03:00
|
|
|
context: backend
|
2023-08-18 11:18:29 +03:00
|
|
|
dockerfile: Dockerfile
|
2023-09-14 12:56:59 +03:00
|
|
|
container_name: flower
|
|
|
|
command: celery -A celery_worker flower -l info --port=5555
|
2023-08-18 11:18:29 +03:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-19 14:32:16 +03:00
|
|
|
- ./backend/:/code/
|
2023-09-14 12:56:59 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- worker
|
2023-10-16 17:11:34 +03:00
|
|
|
- beat
|
2023-09-14 12:56:59 +03:00
|
|
|
ports:
|
|
|
|
- 5555:5555
|