Added environment UNIT_SOURCE and redis volumes.

This commit is contained in:
Leonid Nikitin 2024-06-11 23:44:51 +05:00
parent 74f7b88bce
commit 2910509218
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D
6 changed files with 34 additions and 9 deletions

View File

@ -11,7 +11,6 @@ CAPTCHA_STATIC_PATH=http://your-domain-captcha-or-IP:8081/captcha
CAPTCHA_PUBLIC_TOKEN=
APP_FORCE_HTTPS=false
#UNIT_SOURCE="\"172.16.0.0/12\""
APP_DEFAULT_LOCALE=ru
APP_FAKER_LOCALE=ru_RU

1
captcha-app/redis/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data/

View File

@ -14,12 +14,17 @@ services:
- ${DOCKER_APP_PORT}:9000
volumes:
- ./app/application:/var/www/html
environment:
CONTAINER_ROLE: app
UNIT_SOURCE: '["172.16.0.0/12"]'
app-redis:
image: redis:3.0-alpine
# restart: always
volumes:
- ./redis/data:/data
captcha-app:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
cap_drop:
- ALL
@ -32,10 +37,13 @@ services:
- db
- captcha-redis
env_file: captcha-app/.env
environment:
CONTAINER_ROLE: app
UNIT_SOURCE: '["172.16.0.0/12"]'
ports:
- ${DOCKER_CAPTCHA_PORT}:9000
captcha-queue:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
depends_on:
- db
@ -44,7 +52,7 @@ services:
CONTAINER_ROLE: queue
env_file: captcha-app/.env
captcha-reverb:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
depends_on:
- db
@ -55,7 +63,7 @@ services:
ports:
- ${DOCKER_CAPTCHA_WEBSOCKET_PORT}:9000
captcha-scheduler:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
depends_on:
- db
@ -66,6 +74,8 @@ services:
captcha-redis:
image: redis:3.0-alpine
# restart: always
volumes:
- ./captcha-app/redis/data:/data
db:
image: docker.io/mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password

View File

@ -10,15 +10,20 @@ services:
ports:
- ${DOCKER_APP_PORT}:9000
env_file: app/.env
environment:
CONTAINER_ROLE: app
UNIT_SOURCE: '["172.16.0.0/12"]'
volumes:
- ./app/storage/app:/var/www/html/storage/app
- ./app/storage/logs:/var/www/html/storage/logs
app-redis:
image: redis:3.0-alpine
# restart: always
volumes:
- ./redis/data:/data
captcha-app:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
cap_drop:
- ALL
@ -33,8 +38,11 @@ services:
env_file: captcha-app/.env
ports:
- ${DOCKER_CAPTCHA_PORT}:9000
environment:
CONTAINER_ROLE: app
UNIT_SOURCE: '["172.16.0.0/12"]'
captcha-queue:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
depends_on:
- db
@ -43,7 +51,7 @@ services:
CONTAINER_ROLE: queue
env_file: captcha-app/.env
captcha-reverb:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
depends_on:
- db
@ -54,7 +62,7 @@ services:
ports:
- ${DOCKER_CAPTCHA_WEBSOCKET_PORT}:9000
captcha-scheduler:
image: korelf/service-captcha:0.8.1
image: korelf/service-captcha:0.8.2
# restart: always
depends_on:
- db
@ -65,6 +73,8 @@ services:
captcha-redis:
image: redis:3.0-alpine
# restart: always
volumes:
- ./captcha-app/redis/data:/data
db:
image: docker.io/mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password

View File

@ -15,6 +15,8 @@ services:
- ./app/application:/var/www/html
app-redis:
image: redis:3.0-alpine
volumes:
- ./redis/data:/data
captcha-app:
image: korelf/service-captcha:0.8.1
@ -62,6 +64,8 @@ services:
env_file: captcha-app/.env
captcha-redis:
image: redis:3.0-alpine
volumes:
- ./captcha-app/redis/data:/data
db:
image: docker.io/mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password

1
redis/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data/