Add Docker support and migrate data paths to /DATA/
Co-authored-by: naielv <109038805+naielv@users.noreply.github.com>
This commit is contained in:
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
axia4-web:
|
||||
build: .
|
||||
container_name: axia4-app
|
||||
ports:
|
||||
- "${WEB_PORT:-8080}:80"
|
||||
volumes:
|
||||
# Mount the DATA directory for persistent storage
|
||||
- ${DATA_DIR:-./DATA}:/DATA
|
||||
# Optional: Mount the application code for development
|
||||
# - ./public_html:/var/www/html
|
||||
environment:
|
||||
- APACHE_DOCUMENT_ROOT=/var/www/html
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- axia4-network
|
||||
|
||||
networks:
|
||||
axia4-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user