diff --git a/README.md b/README.md index c395b2e..fd0ec6d 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ Use the `portainer-compose.yml` file and modify to your hearts content. ## Fixed grammer Fixed grammar - ## Notes - https://ohmyz.sh/#install diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml new file mode 100644 index 0000000..7425d4c --- /dev/null +++ b/docker-compose-deploy.yml @@ -0,0 +1,34 @@ + +services: + + # Building and testing environment + dev: + build: + context: . + dockerfile: Dockerfile + image: ghcr.io/growlf/toolbox:latest + environment: + - TESTVAR=${TESTVAR:-app} + stdin_open: true + tty: true + command: ["/bin/zsh"] + network_mode: "host" + + # Example container with DooD and host file/net access + app1: + image: ghcr.io/growlf/toolbox:latest + environment: + - TESTVAR=${TESTVAR:-/src} #this is an environment variable that can be altered in portainer + stdin_open: true + tty: true + command: ["/bin/zsh"] + network_mode: "host" + + + # Example of running the same image with different intent + app2: + image: ghcr.io/growlf/toolbox:latest + stdin_open: true + tty: true + command: ["/bin/bash"] + diff --git a/docker-compose.yml b/docker-compose.yml index dfed9d8..0973e27 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: app1: image: ghcr.io/growlf/toolbox:latest environment: - - TESTVAR=${TESTVAR:/src} + - TESTVAR=${TESTVAR:/src} #this is an environment variable stdin_open: true tty: true command: ["/bin/zsh"] diff --git a/portainer-compose.yml b/portainer-compose.yml index 0e3dbfc..037b113 100644 --- a/portainer-compose.yml +++ b/portainer-compose.yml @@ -1,4 +1,4 @@ -version: '3.8' + services: # Building and testing environment @@ -6,7 +6,7 @@ services: build: context: . dockerfile: Dockerfile - image: ghcr.io/growlf/toolbox:testing + image: ghcr.io/growlf/toolbox:latest stdin_open: true tty: true command: ["/bin/zsh"]