209 lines
4.6 KiB
YAML
209 lines
4.6 KiB
YAML
services:
|
|
php:
|
|
build:
|
|
context: ./docker/php/dev
|
|
dockerfile: Dockerfile
|
|
container_name: e_ticket_php
|
|
restart: unless-stopped
|
|
group_add:
|
|
- "${DOCKER_GID:-989}"
|
|
volumes:
|
|
- .:/app
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
ports:
|
|
- "9000:9000"
|
|
depends_on:
|
|
pgbouncer:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
database:
|
|
image: postgres:16-alpine
|
|
container_name: e_ticket_database
|
|
environment:
|
|
POSTGRES_USER: app
|
|
POSTGRES_PASSWORD: secret
|
|
POSTGRES_DB: e_ticket
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U app -d e_ticket"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
pgbouncer:
|
|
image: edoburu/pgbouncer
|
|
container_name: e_ticket_pgbouncer
|
|
volumes:
|
|
- ./docker/pgsql/pgbouncer-dev.ini:/etc/pgbouncer/pgbouncer.ini:ro
|
|
- ./docker/pgsql/userlist-dev.txt:/etc/pgbouncer/userlist.txt:ro
|
|
ports:
|
|
- "6432:6432"
|
|
depends_on:
|
|
database:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 6432 -U app"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: e_ticket_redis
|
|
command: redis-server --requirepass e_ticket
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "-a", "e_ticket", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
caddy:
|
|
image: caddy:2-alpine
|
|
container_name: e_ticket_caddy
|
|
ports:
|
|
- "8000:80"
|
|
volumes:
|
|
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
|
|
- .:/app
|
|
depends_on:
|
|
- php
|
|
|
|
messenger:
|
|
build:
|
|
context: ./docker/php/dev
|
|
dockerfile: Dockerfile
|
|
container_name: e_ticket_messenger
|
|
command: php bin/console messenger:consume async -vv
|
|
restart: unless-stopped
|
|
volumes:
|
|
- .:/app
|
|
depends_on:
|
|
pgbouncer:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
meilisearch:
|
|
condition: service_started
|
|
|
|
bun:
|
|
image: oven/bun:alpine
|
|
container_name: e_ticket_bun
|
|
working_dir: /app
|
|
volumes:
|
|
- .:/app
|
|
- bun-modules:/app/node_modules
|
|
command: sh -c "bun install && bun run dev"
|
|
ports:
|
|
- "5173:5173"
|
|
|
|
mailpit:
|
|
image: axllent/mailpit
|
|
container_name: e_ticket_mailpit
|
|
ports:
|
|
- "1025:1025"
|
|
- "8025:8025"
|
|
|
|
vault:
|
|
image: hashicorp/vault:latest
|
|
container_name: e_ticket_vault
|
|
cap_add:
|
|
- IPC_LOCK
|
|
environment:
|
|
VAULT_DEV_ROOT_TOKEN_ID: e_ticket
|
|
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
|
|
ports:
|
|
- "8200:8200"
|
|
volumes:
|
|
- vault-data:/vault/file
|
|
|
|
ngrok:
|
|
image: ngrok/ngrok:latest
|
|
container_name: e_ticket_ngrok
|
|
command: http caddy:80 --log stdout
|
|
environment:
|
|
NGROK_AUTHTOKEN: GXtZtKtRxRF5TFV5pCKD_25f1ALUyQQ9LkyQJgv1dr
|
|
ports:
|
|
- "4040:4040"
|
|
depends_on:
|
|
- caddy
|
|
|
|
ngrok-sync:
|
|
image: curlimages/curl:latest
|
|
container_name: e_ticket_ngrok_sync
|
|
user: "0:0"
|
|
volumes:
|
|
- .:/app
|
|
- ./docker/ngrok/sync.sh:/sync.sh
|
|
depends_on:
|
|
- ngrok
|
|
entrypoint: sh /sync.sh
|
|
|
|
meilisearch:
|
|
image: getmeili/meilisearch:latest
|
|
container_name: e_ticket_meilisearch
|
|
environment:
|
|
MEILI_MASTER_KEY: e_ticket
|
|
MEILI_ENV: development
|
|
ports:
|
|
- "7700:7700"
|
|
volumes:
|
|
- meilisearch-data:/meili_data
|
|
|
|
libretranslate:
|
|
image: libretranslate/libretranslate:latest
|
|
container_name: e_ticket_libretranslate
|
|
environment:
|
|
LT_LOAD_ONLY: fr,en,es,de,it
|
|
LT_DISABLE_WEB_UI: "true"
|
|
volumes:
|
|
- libretranslate-data:/home/libretranslate/.local
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -sf http://localhost:5000/languages || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 120s
|
|
|
|
cron:
|
|
build:
|
|
context: ./docker/cron
|
|
dockerfile: Dockerfile
|
|
container_name: e_ticket_cron
|
|
restart: unless-stopped
|
|
group_add:
|
|
- "${DOCKER_GID:-989}"
|
|
volumes:
|
|
- .:/app
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
depends_on:
|
|
pgbouncer:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
redisinsight:
|
|
image: redis/redisinsight:latest
|
|
container_name: e_ticket_redisinsight
|
|
ports:
|
|
- "5540:5540"
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
db-data:
|
|
redis-data:
|
|
bun-modules:
|
|
vault-data:
|
|
meilisearch-data:
|
|
libretranslate-data:
|