my-projects-website/docker-compose-prod_docker-hub.yml

124 lines
3.2 KiB
YAML
Raw Permalink Normal View History

2024-04-24 20:54:49 +05:00
version: '3.7'
services:
app:
2024-07-27 01:40:45 +05:00
# image: korelf/my-projects-website:0.3.0 # docker hub
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.3.0 # MDHub
2024-04-24 20:54:49 +05:00
# restart: always
depends_on:
- db
- app-redis
- captcha-app
ports:
- ${DOCKER_APP_PORT}:9000
env_file: app/.env
environment:
CONTAINER_ROLE: app
2024-06-12 00:43:36 +05:00
UNIT_SOURCE: '"172.16.0.0/12"'
2024-04-24 20:54:49 +05:00
volumes:
- ./app/storage/app:/var/www/html/storage/app
- ./app/storage/logs:/var/www/html/storage/logs
2024-07-27 01:40:45 +05:00
queue:
# image: korelf/my-projects-website:0.3.0 # docker hub
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.3.0 # MDHub
# restart: always
depends_on:
- db
- app-redis
environment:
CONTAINER_ROLE: queue
env_file: app/.env
volumes:
- ./app/storage/app:/var/www/html/storage/app
- ./app/storage/logs:/var/www/html/storage/logs
scheduler:
# image: korelf/my-projects-website:0.3.0 # docker hub
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.3.0 # MDHub
# restart: always
depends_on:
- db
- app-redis
environment:
CONTAINER_ROLE: scheduler
env_file: app/.env
volumes:
- ./app/storage/app:/var/www/html/storage/app
- ./app/storage/logs:/var/www/html/storage/logs
2024-04-24 20:54:49 +05:00
app-redis:
2024-07-27 01:40:45 +05:00
image: redis:3.0-alpine # docker hub
# image: docker.mdhub.kor-elf.net/kor-elf/redis:3.0-alpine # MDHub
2024-04-24 20:54:49 +05:00
# restart: always
volumes:
- ./redis/data:/data
2024-04-24 20:54:49 +05:00
captcha-app:
image: korelf/service-captcha:0.8.2
2024-04-24 20:54:49 +05:00
# restart: always
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- CHOWN
- FOWNER
depends_on:
- db
- captcha-redis
env_file: captcha-app/.env
ports:
- ${DOCKER_CAPTCHA_PORT}:9000
environment:
CONTAINER_ROLE: app
2024-06-12 00:43:36 +05:00
UNIT_SOURCE: '"172.16.0.0/12"'
2024-05-02 23:59:38 +05:00
captcha-queue:
image: korelf/service-captcha:0.8.2
2024-05-02 23:59:38 +05:00
# restart: always
depends_on:
- db
- captcha-redis
environment:
CONTAINER_ROLE: queue
env_file: captcha-app/.env
captcha-reverb:
image: korelf/service-captcha:0.8.2
2024-05-02 23:59:38 +05:00
# restart: always
depends_on:
- db
- captcha-redis
environment:
CONTAINER_ROLE: websockets
env_file: captcha-app/.env
ports:
- ${DOCKER_CAPTCHA_WEBSOCKET_PORT}:9000
captcha-scheduler:
image: korelf/service-captcha:0.8.2
2024-05-02 23:59:38 +05:00
# restart: always
depends_on:
- db
- captcha-redis
environment:
CONTAINER_ROLE: scheduler
env_file: captcha-app/.env
2024-04-24 20:54:49 +05:00
captcha-redis:
2024-07-27 01:40:45 +05:00
image: redis:3.0-alpine # docker hub
# image: docker.mdhub.kor-elf.net/kor-elf/redis:3.0-alpine # MDHub
2024-04-24 20:54:49 +05:00
# restart: always
volumes:
- ./captcha-app/redis/data:/data
2024-04-24 20:54:49 +05:00
db:
2024-07-27 01:40:45 +05:00
image: docker.io/mysql:8.0.33 # docker hub
# image: docker.mdhub.kor-elf.net/kor-elf/mysql:8.0.33 # MDHub
2024-04-24 20:54:49 +05:00
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