dockerise server

This commit is contained in:
Jurgis Sakalauskas
2023-08-04 16:06:47 +03:00
parent 27f76a08f0
commit fe938afa3f
11 changed files with 81 additions and 28 deletions
+19
View File
@@ -0,0 +1,19 @@
services:
server:
build:
context: .
dockerfile: ./Dockerfile
# working_dir: /srv/app/
volumes:
- .:/srv/app/
- $VIDEO_FILES_FOLDER:$VIDEO_FILES_FOLDER
- $LOG_FILE_REQUESTS_FOLDER:/srv/data/requests-log
- $STATIC_SERVE_FOLDER:/srv/data/static
- $DB_FOLDER:/srv/data/db
- $RECENT_SEARCHES_FOLDER:/srv/data/recent-searches
env_file:
- .env
ports:
- $PORT:$PORT
extra_hosts:
- "host.docker.internal:host-gateway"