Files
vindn.de/docker-compose.dev.yaml

52 lines
1.1 KiB
YAML

services:
backend:
image: golang:1.24
working_dir: /backend
ports:
- "8082:8080"
depends_on:
- db
environment:
- DATABASE_URL=${DATABASE_URL}
- ODH_LICENCE_KEY=${ODH_LICENCE_KEY}
- TZ=Europe/Berlin
volumes:
- ./backend:/backend
command: go run cmd/server/main.go
restart: unless-stopped
db:
image: postgres:14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
# ports:
# - "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
restart: unless-stopped
frontend:
env_file:
- .env-frontend
build: ./frontend
working_dir: /app
ports:
- "8083:8000"
depends_on:
- db
environment:
- DATABASE_URL=${DATABASE_URL}
volumes:
- ./frontend:/app
- ./backend/public/storage:/app/public/storage
command: sh -c "composer install --no-interaction && php -S 0.0.0.0:8000 -t public"
restart: unless-stopped
admin:
image: adminer
restart: always
depends_on:
- db
ports:
- 5433:8080