diff --git a/docker-compose.yml b/docker-compose.yml index c0b0660df..ab694ba62 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,44 +1,47 @@ version: "3.8" services: db: image: mysql command: --default-authentication-plugin=mysql_native_password container_name: avideo_db #tty: true ports: - 3306 environment: - MYSQL_USER=root - MYSQL_PASSWORD=root - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=avideo - TZ=UTC expose: - 3306 volumes: - ./storage/data:/var/lib/mysql networks: - app_net web: depends_on: - db hostname: avideo_web build: . environment: - DEBIAN_FRONTEND=noninteractive - TZ=UTC expose: - 80 - 443 #volumes: # - .:/var/www/avideo:rw networks: - app_net - + ports: + - '${HTTP_PORT}:80' + - '${HTTPS_PORT}:443' + - '${Socket_PORT}:2053' #Docker Networks networks: app_net: driver: bridge diff --git a/env.example b/env.example new file mode 100644 index 000000000..2c122f162 --- /dev/null +++ b/env.example @@ -0,0 +1,5 @@ +webSiteRootURL={webSiteRootURL} +# Exposed HTTP port +HTTP_PORT={HTTP_PORT} +HTTPS_PORT={HTTPS_PORT} +Socket_PORT={Socket_PORT} \ No newline at end of file