chore: sync
This commit is contained in:
@@ -10,5 +10,32 @@ services:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user