Files
booking-service/docker-compose.yml

53 lines
1.2 KiB
YAML

services:
db:
image: postgres:16-alpine
container_name: booking-db
environment:
POSTGRES_DB: booking
POSTGRES_USER: booking
POSTGRES_PASSWORD: booking2026
volumes:
- booking_pgdata:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5440:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U booking"]
interval: 5s
timeout: 3s
retries: 5
app:
build: .
container_name: booking-app
env_file:
- .env
environment:
BOOKING_DATABASE_URL: postgresql://booking:booking2026@db:5432/booking
BOOKING_API_KEY: ianni-booking-2026
BOOKING_APP_URL: https://booking.scan360.app
BOOKING_WA_ENABLED: "true"
BOOKING_WA_GATEWAY_URL: http://wa:3100/send
BOOKING_TIMEZONE: Europe/Rome
ports:
- "8020:8020"
depends_on:
db:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
wa:
build: ./wa-service
container_name: booking-wa
volumes:
- wa_auth:/data/auth
environment:
PORT: "3100"
restart: unless-stopped
volumes:
booking_pgdata:
wa_auth: