Files
Space-Theme/docker-compose.yml
2026-02-09 00:05:29 +01:00

42 lines
1.1 KiB
YAML

services:
db:
image: postgres:16
container_name: galaxyforge-db
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${DB_NAME:-change-me}
POSTGRES_USER: ${DB_USER:-change-me}
POSTGRES_PASSWORD: ${DB_PASS:-your-strong-password}
volumes:
- pgdata:/var/lib/postgresql/data
web:
image: php:8.2-apache
depends_on:
- db
ports:
- "8080:80"
environment:
APACHE_DOCUMENT_ROOT: /app/web/desktop/public
volumes:
- ./web/desktop/public:/app/web/desktop/public:ro
- ./web/mobile/public:/app/web/mobile/public:ro
- ./server:/app/server:ro
- ./config:/app/config:ro
command:
- /bin/sh
- -c
- |
cat <<'EOF' >/etc/apache2/conf-available/mobile-alias.conf
Alias /m /app/web/mobile/public
<Directory /app/web/mobile/public>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
EOF
ln -sf /etc/apache2/conf-available/mobile-alias.conf /etc/apache2/conf-enabled/mobile-alias.conf
apache2-foreground
volumes:
pgdata: