Supprimer start-app.sh
This commit is contained in:
parent
67c66bb557
commit
d8c02274a3
27
start-app.sh
27
start-app.sh
@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Start the application"
|
||||
|
||||
# Run PostgreSQL container
|
||||
docker run -d --name postgres_db \
|
||||
--network app_network \
|
||||
-e 'POSTGRES_USER=user' \
|
||||
-e 'POSTGRES_PASSWORD=password' \
|
||||
-e 'POSTGRES_DB=sampledb' \
|
||||
-v pgdata:/var/lib/postgresql/data \
|
||||
--restart unless-stopped \
|
||||
postgres:13
|
||||
|
||||
# Run Flask application container
|
||||
docker run -d --name flask_app \
|
||||
--network app_network \
|
||||
-p 5000:5000 \
|
||||
-e 'DB_HOST=postgres_db' \
|
||||
-e 'POSTGRES_USER=user' \
|
||||
-e 'POSTGRES_PASSWORD=password' \
|
||||
-e 'POSTGRES_DB=sampledb' \
|
||||
--restart unless-stopped \
|
||||
flask_app_image
|
||||
|
||||
echo "The application is available at http://localhost:5000"
|
Loading…
Reference in New Issue
Block a user