diff --git a/.env.template b/.env.template deleted file mode 100644 index 16e5b79d..00000000 --- a/.env.template +++ /dev/null @@ -1,8 +0,0 @@ -DB_PATH= -STATIC_FILES_URL= -WEBHOOK_URL= -DB_HOST= -DB_PORT= -DB_USER= -DB_PASSWORD= -DB_NAME= \ No newline at end of file diff --git a/backend/.env.template b/backend/.env.template index 34468e08..ce17f286 100644 --- a/backend/.env.template +++ b/backend/.env.template @@ -1,3 +1,7 @@ -DB_PATH=/db/iqps.db STATIC_FILES_URL=https://static.metakgp.org +DB_NAME= +DB_HOST= +DB_PORT= +DB_USER= +DB_PASSWORD= QPS_PATH= \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index 0cc3dd4d..3b6a4455 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,8 +17,5 @@ RUN chmod +x /postinstall.sh # Copy the binary from the builder COPY --from=builder /app /app -# Copy .env file -COPY .env / - # Run postinstall script and the binary CMD ["/postinstall.sh", "/app"] \ No newline at end of file diff --git a/backend/docker-compose.yaml b/backend/docker-compose.yaml index 2cd9dd97..a6028a30 100644 --- a/backend/docker-compose.yaml +++ b/backend/docker-compose.yaml @@ -12,6 +12,13 @@ services: - ./db:/db - nginx-config-volume:/etc/nginx/sites-enabled - odins-vault:/srv/static + environment: + - STATIC_FILES_URL=${STATIC_FILES_URL} + - DB_NAME=${DB_NAME} + - DB_HOST=${DB_HOST} + - DB_PORT=${DB_PORT} + - DB_USER=${DB_PASSWORD} + - QPS_PATH=${QPS_PATH} networks: metaploy-network: