103 lines
2.3 KiB
YAML
103 lines
2.3 KiB
YAML
|
version: '3.7'
|
||
|
services:
|
||
|
app:
|
||
|
image: korelf/my-projects-website:0.1.0
|
||
|
# 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
|
||
|
queue:
|
||
|
image: korelf/service-captcha:0.8.1
|
||
|
# restart: always
|
||
|
depends_on:
|
||
|
- db
|
||
|
- app-redis
|
||
|
environment:
|
||
|
CONTAINER_ROLE: queue
|
||
|
env_file: app/.env
|
||
|
scheduler:
|
||
|
image: korelf/service-captcha:0.8.1
|
||
|
# restart: always
|
||
|
depends_on:
|
||
|
- db
|
||
|
- app-redis
|
||
|
environment:
|
||
|
CONTAINER_ROLE: scheduler
|
||
|
env_file: app/.env
|
||
|
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:
|
||
|
image: korelf/service-captcha:0.8.1
|
||
|
# 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
|
||
|
captcha-queue:
|
||
|
image: korelf/service-captcha:0.8.1
|
||
|
# restart: always
|
||
|
depends_on:
|
||
|
- db
|
||
|
- captcha-redis
|
||
|
environment:
|
||
|
CONTAINER_ROLE: queue
|
||
|
env_file: captcha-app/.env
|
||
|
captcha-reverb:
|
||
|
image: korelf/service-captcha:0.8.1
|
||
|
# 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.1
|
||
|
# restart: always
|
||
|
depends_on:
|
||
|
- db
|
||
|
- captcha-redis
|
||
|
environment:
|
||
|
CONTAINER_ROLE: scheduler
|
||
|
env_file: captcha-app/.env
|
||
|
captcha-redis:
|
||
|
image: redis:3.0-alpine
|
||
|
# restart: always
|
||
|
volumes:
|
||
|
- ./captcha-app/redis/data:/data
|