Skip to content

Commit

Permalink
Fix vpn-based deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
brunneis committed Jul 16, 2024
1 parent 3bc6956 commit 065543b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Custom
docker/vpn

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-vpn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ services:
- /tmp
- /var/cache/nginx
volumes:
- ../nginx.conf:/etc/nginx/nginx.conf
- ./nginx.conf:/etc/nginx/nginx.conf
restart: always
logging: *default-logging
3 changes: 2 additions & 1 deletion scripts/start-docker-vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ cd $(dirname $0)/..
source env.sh
cd docker

docker compose up -f docker-compose-vpn.yaml --build $@
export COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}-vpn
docker compose -f docker-compose-vpn.yaml up --build -d
2 changes: 1 addition & 1 deletion scripts/start-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ cd $(dirname $0)/..
source env.sh
cd docker

docker compose up --build $@
docker compose up --build -d
7 changes: 7 additions & 0 deletions scripts/stop-docker-vpn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
cd $(dirname $0)/..
source env.sh
cd docker

export COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}-vpn
docker compose -f docker-compose-vpn.yaml down --remove-orphans
6 changes: 6 additions & 0 deletions scripts/stop-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
cd $(dirname $0)/..
source env.sh
cd docker

docker compose down --remove-orphans

0 comments on commit 065543b

Please sign in to comment.