This commit is contained in:
Laurent
2025-03-11 13:03:54 +01:00
parent 102b4fe055
commit 0a1395aec8
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,3 @@
volumes:
unluckiest_database:
networks:
unluckiest_network:
driver: bridge
@@ -36,6 +33,8 @@ services:
DB_URL: mysql://database:3306/unluckiest_db
DB_USER: unluckiest_user
DB_PASSWORD: _nlckst_prod!
ports:
- "5000:5000"
networks:
- unluckiest_network
depends_on:
@@ -47,6 +46,8 @@ services:
build:
context: ./front
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
- unluckiest_network
depends_on:

View File

@@ -1,6 +1,5 @@
#!/bin/bash
# Check if required environment variables are set
: "${DB_NAME:?Environment variable DB_NAME is required}"
: "${DB_USER:?Environment variable DB_USER is required}"