2024-06-18 22:35:54 +05:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
app:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/mdhub:0.1.0-beta
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- app-redis
|
|
|
|
- captcha-app
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_APP_PORT}:9000
|
|
|
|
env_file: app/.env
|
|
|
|
volumes:
|
|
|
|
- ./app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./app/storage/logs:/var/www/html/storage/logs
|
2024-07-06 18:07:13 +05:00
|
|
|
- ./certs:/var/www/html/resources/certs:ro
|
2024-06-18 22:35:54 +05:00
|
|
|
queue:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/mdhub:0.1.0-beta
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- app-redis
|
|
|
|
environment:
|
|
|
|
CONTAINER_ROLE: queue
|
|
|
|
env_file: app/.env
|
2024-07-06 18:07:13 +05:00
|
|
|
volumes:
|
|
|
|
- ./app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./app/storage/logs:/var/www/html/storage/logs
|
|
|
|
- ./certs:/var/www/html/resources/certs:ro
|
2024-06-18 22:35:54 +05:00
|
|
|
scheduler:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/mdhub:0.1.0-beta
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- app-redis
|
|
|
|
environment:
|
|
|
|
CONTAINER_ROLE: scheduler
|
|
|
|
env_file: app/.env
|
2024-07-06 18:07:13 +05:00
|
|
|
volumes:
|
|
|
|
- ./app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./app/storage/logs:/var/www/html/storage/logs
|
|
|
|
- ./certs:/var/www/html/resources/certs:ro
|
2024-06-18 22:35:54 +05:00
|
|
|
app-redis:
|
|
|
|
image: redis:3.0-alpine
|
|
|
|
# restart: always
|
|
|
|
volumes:
|
|
|
|
- ./redis/data:/data
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: docker.io/mysql:8.0.33
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
#restart: always
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_DB_PORT}:3306
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
|
|
MYSQL_DATABASE: ${DB_DATABASE}
|
|
|
|
MYSQL_USER: ${DB_USERNAME}
|
|
|
|
MYSQL_PASSWORD: ${DB_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- ./db/data:/var/lib/mysql
|
|
|
|
|
|
|
|
captcha-app:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/service-captcha:0.8.2
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
- CHOWN
|
|
|
|
- FOWNER
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- captcha-redis
|
|
|
|
env_file: captcha-app/.env
|
2024-07-06 18:07:13 +05:00
|
|
|
volumes:
|
|
|
|
- ./captcha-app/app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./captcha-app/app/storage/logs:/var/www/html/storage/logs
|
2024-06-18 22:35:54 +05:00
|
|
|
ports:
|
|
|
|
- ${DOCKER_CAPTCHA_PORT}:9000
|
|
|
|
captcha-queue:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/service-captcha:0.8.2
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- captcha-redis
|
|
|
|
environment:
|
|
|
|
CONTAINER_ROLE: queue
|
|
|
|
env_file: captcha-app/.env
|
2024-07-06 18:07:13 +05:00
|
|
|
volumes:
|
|
|
|
- ./captcha-app/app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./captcha-app/app/storage/logs:/var/www/html/storage/logs
|
2024-06-18 22:35:54 +05:00
|
|
|
captcha-reverb:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/service-captcha:0.8.2
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- captcha-redis
|
|
|
|
environment:
|
|
|
|
CONTAINER_ROLE: websockets
|
|
|
|
env_file: captcha-app/.env
|
2024-07-06 18:07:13 +05:00
|
|
|
volumes:
|
|
|
|
- ./captcha-app/app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./captcha-app/app/storage/logs:/var/www/html/storage/logs
|
2024-06-18 22:35:54 +05:00
|
|
|
ports:
|
|
|
|
- ${DOCKER_CAPTCHA_WEBSOCKET_PORT}:9000
|
|
|
|
captcha-scheduler:
|
2024-07-06 18:07:13 +05:00
|
|
|
image: korelf/service-captcha:0.8.2
|
2024-06-18 22:35:54 +05:00
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- captcha-redis
|
|
|
|
environment:
|
|
|
|
CONTAINER_ROLE: scheduler
|
|
|
|
env_file: captcha-app/.env
|
2024-07-06 18:07:13 +05:00
|
|
|
volumes:
|
|
|
|
- ./captcha-app/app/storage/app:/var/www/html/storage/app
|
|
|
|
- ./captcha-app/app/storage/logs:/var/www/html/storage/logs
|
2024-06-18 22:35:54 +05:00
|
|
|
captcha-redis:
|
|
|
|
image: redis:3.0-alpine
|
|
|
|
# restart: always
|
|
|
|
volumes:
|
2024-07-06 18:07:13 +05:00
|
|
|
- ./captcha-app/redis/data:/data
|
|
|
|
|
|
|
|
registry-web:
|
|
|
|
image: nginx:alpine
|
|
|
|
ports:
|
|
|
|
- ${DOCKER_REGISTRY_WEB}:80
|
|
|
|
depends_on:
|
|
|
|
- registry
|
|
|
|
# restart: always
|
|
|
|
volumes:
|
|
|
|
- ./registry/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
registry:
|
|
|
|
image: registry:2
|
|
|
|
# restart: always
|
|
|
|
volumes:
|
|
|
|
- ./registry/data:/images
|
|
|
|
- ./certs:/certs:ro
|
|
|
|
- ./registry/config.yml:/etc/docker/registry/config.yml:ro
|