service-captcha/docker-compose-prod_docker-hub.yml

76 lines
1.6 KiB
YAML
Raw Normal View History

2024-04-25 19:56:34 +05:00
version: '3.7'
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
# restart: always
depends_on:
- app
- swagger
ports:
- ${DOCKER_NGINX_PORT}:80
app:
2024-04-28 20:00:01 +05:00
image: korelf/service-captcha:0.8.1
2024-04-25 19:56:34 +05:00
# restart: always
depends_on:
- db
- redis
2024-04-28 01:26:30 +05:00
- reverb
env_file: app/.env
queue:
2024-04-28 20:00:01 +05:00
image: korelf/service-captcha:0.8.1
2024-04-28 01:26:30 +05:00
# restart: always
depends_on:
- db
- redis
environment:
CONTAINER_ROLE: queue
env_file: app/.env
reverb:
2024-04-28 20:00:01 +05:00
image: korelf/service-captcha:0.8.1
2024-04-28 01:26:30 +05:00
# restart: always
depends_on:
- db
- redis
environment:
CONTAINER_ROLE: websockets
env_file: app/.env
ports:
- ${DOCKER_WEBSOCKET_PORT}:9000
scheduler:
2024-04-28 20:00:01 +05:00
image: korelf/service-captcha:0.8.1
2024-04-28 01:26:30 +05:00
# restart: always
depends_on:
- db
- redis
environment:
CONTAINER_ROLE: scheduler
2024-04-25 19:56:34 +05:00
env_file: app/.env
redis:
image: redis:3.0-alpine
# restart: always
2024-06-11 22:42:58 +05:00
volumes:
- ./redis/data:/data
2024-04-25 19:56:34 +05:00
swagger:
image: swaggerapi/swagger-ui
depends_on:
- app
environment:
URLS: "[ { url: '/swagger.json', name: '/swagger.json' } ]"
BASE_URL: /api-docs
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