2024-11-03 13:40:50 +01:00
|
|
|
services:
|
|
|
|
backend:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
ports:
|
2024-11-03 13:53:36 +01:00
|
|
|
- 3000
|
2024-11-03 13:40:50 +01:00
|
|
|
depends_on:
|
2024-11-03 13:53:36 +01:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
|
|
|
|
RAILS_ENV: development
|
2024-12-17 00:46:01 +01:00
|
|
|
tty: true
|
|
|
|
stdin_open: true
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/up"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2024-11-03 13:59:35 +01:00
|
|
|
volumes:
|
|
|
|
- .:/rails
|
2024-11-03 13:53:36 +01:00
|
|
|
workers:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
entrypoint: bin/jobs
|
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2024-11-03 13:40:50 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
|
|
|
|
RAILS_ENV: development
|
2024-11-03 13:59:35 +01:00
|
|
|
volumes:
|
|
|
|
- .:/rails
|
2024-11-03 13:40:50 +01:00
|
|
|
frontend:
|
2024-11-03 14:13:13 +01:00
|
|
|
build:
|
|
|
|
context: ../wedding-planner-frontend
|
|
|
|
dockerfile: Dockerfile.dev
|
2024-11-03 13:40:50 +01:00
|
|
|
ports:
|
2024-11-03 13:53:36 +01:00
|
|
|
- 3000
|
2024-12-17 00:46:01 +01:00
|
|
|
healthcheck:
|
|
|
|
test: wget -qO - http://localhost:3000/api/health || exit 1
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2024-11-03 13:40:50 +01:00
|
|
|
depends_on:
|
|
|
|
- backend
|
2024-11-03 14:13:13 +01:00
|
|
|
volumes:
|
|
|
|
- ../wedding-planner-frontend/:/app
|
2024-12-01 19:42:25 +01:00
|
|
|
libre-captcha:
|
|
|
|
image: librecaptcha/lc-core:latest
|
|
|
|
volumes:
|
|
|
|
- "./tmp/libre-captcha-data:/lc-core/data"
|
2024-12-09 18:25:47 +01:00
|
|
|
- "./libre-captcha-config.json:/lc-core/data/config.json"
|
2024-12-01 19:42:25 +01:00
|
|
|
ports:
|
2024-12-01 20:01:00 +01:00
|
|
|
- 8888
|
2024-11-03 13:40:50 +01:00
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
depends_on:
|
2024-12-17 00:46:01 +01:00
|
|
|
frontend:
|
|
|
|
condition: service_healthy
|
|
|
|
backend:
|
|
|
|
condition: service_healthy
|
2024-11-03 13:40:50 +01:00
|
|
|
db:
|
|
|
|
image: postgres:17
|
|
|
|
ports:
|
|
|
|
- 5432
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: postgres
|
2024-11-03 13:53:36 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2024-11-03 13:40:50 +01:00
|
|
|
|
|
|
|
|