Update and rename docker_compose.sh to compose.sh

This commit is contained in:
Ryan Freeman 2025-06-10 14:52:37 +01:00 committed by GitHub
parent 5e07e1abed
commit 4e16e9e21e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 21 deletions

9
compose.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
cat > compose.prod.yaml <<EOF
services:
portfolio_frontend:
ports:
- "${SERVER_PORT}:3000:3000"
EOF

View File

@ -1,21 +0,0 @@
#!/bin/bash
cat > docker-compose.prod.yaml <<EOF
networks:
portfolio_net:
driver: bridge
name: portfolio_net
services:
portfolio_frontend:
container_name: portfolio_frontend
image: portfolio/frontend
build:
context: .
dockerfile: ./Dockerfile
ports:
- "${SERVER_PORT}:3000:3000"
restart: unless-stopped
networks:
- portfolio_net
EOF