mirror of
https://github.com/r-freeman/portfolio.git
synced 2025-06-28 00:20:20 +00:00
Update and rename docker_compose.sh to compose.sh
This commit is contained in:
parent
5e07e1abed
commit
4e16e9e21e
9
compose.sh
Executable file
9
compose.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cat > compose.prod.yaml <<EOF
|
||||||
|
services:
|
||||||
|
portfolio_frontend:
|
||||||
|
ports:
|
||||||
|
- "${SERVER_PORT}:3000:3000"
|
||||||
|
|
||||||
|
EOF
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user