Skip to content

Instantly share code, notes, and snippets.

@anilahir
Forked from GabrielCzar/DOCKER_COMPOSE.md
Created August 14, 2021 05:42
Show Gist options
  • Select an option

  • Save anilahir/8af10cd363f9c0137a15c75dda933d04 to your computer and use it in GitHub Desktop.

Select an option

Save anilahir/8af10cd363f9c0137a15c75dda933d04 to your computer and use it in GitHub Desktop.

Revisions

  1. @GabrielCzar GabrielCzar revised this gist Oct 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion run.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/usr/bin/env bash

    URL_GISTS=''
    URL_GISTS='https://gist.github.com/GabrielCzar/c6c1250b6d3f61c70a9b73198c091f4f/raw/034d40fe106500b5317ca26bbba8efb5e1119d52/'

    echo "Required Docker-compose installed"
    echo "Insert GIST NAME"
  2. @GabrielCzar GabrielCzar revised this gist Oct 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion run.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/usr/bin/env bash

    URL_GISTS='https://gist.github.com/GabrielCzar/d96f78ddfd1ee2db96df9b77a322d2e0/raw/44f874de8808f6bf6cf599f0e833b43a880e6c51'
    URL_GISTS=''

    echo "Required Docker-compose installed"
    echo "Insert GIST NAME"
  3. @GabrielCzar GabrielCzar revised this gist Oct 17, 2018. 4 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
  4. @GabrielCzar GabrielCzar revised this gist Oct 9, 2018. 5 changed files with 91 additions and 0 deletions.
    22 changes: 22 additions & 0 deletions mongo_docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    version: '3.1'

    services:
    db:
    image: mongo:latest
    volumes:
    - db_data:/data/db
    ports:
    - 27017:27017
    restart: always
    environment:
    MONGO_INITDB_ROOT_USERNAME: root
    MONGO_INITDB_ROOT_PASSWORD: pass

    mongo-express:
    image: mongo-express
    restart: always
    ports:
    - 8081:8081
    environment:
    ME_CONFIG_MONGODB_ADMINUSERNAME: root
    ME_CONFIG_MONGODB_ADMINPASSWORD: pass
    22 changes: 22 additions & 0 deletions mysql_docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    version: '3.1'

    services:
    db:
    image: mysql:5.7
    command: --default-authentication-plugin=mysql_native_password
    volumes:
    - /var/lib/mysql:/var/lib/mysql
    restart: always
    environment:
    - MYSQL_ROOT_PASSWORD=mysql
    - MYSQL_DATABASE=sample
    - MYSQL_USER=mysql
    - MYSQL_PASSWORD=mysql

    adminer:
    image: adminer
    restart: always
    ports:
    - 8088:8080
    environment:
    - ADMINER_DESIGN=pepa-linha
    15 changes: 15 additions & 0 deletions nodeapp_docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    version: "3"
    services:
    web:
    build: .
    volumes:
    - ./:/src
    - /src/node_modules
    ports:
    - "3000:3000"
    links:
    - mongo
    mongo:
    image: mongo
    ports:
    - "27017:27017"
    13 changes: 13 additions & 0 deletions postgres_docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    version: '3.1'

    services:
    postgis:
    image: kartoza/postgis
    restart: always
    ports: 25432:5432
    volumes:
    pg_data:/var/lib/postgresql
    environment:
    POSTGRES_USER="dbuser"
    POSTGRES_PASS="dbpass"
    POSTGRES_DBNAME="dbtest"
    19 changes: 19 additions & 0 deletions run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/usr/bin/env bash

    URL_GISTS='https://gist.github.com/GabrielCzar/d96f78ddfd1ee2db96df9b77a322d2e0/raw/44f874de8808f6bf6cf599f0e833b43a880e6c51'

    echo "Required Docker-compose installed"
    echo "Insert GIST NAME"

    read GIST_NAME

    wget "$URL_GISTS/$GIST_NAME"

    mv $GIST_NAME "docker-compose.yml"

    echo
    echo "docker-compose.yml created."

    echo
    echo "Starting container"
    docker-compose up
  5. @GabrielCzar GabrielCzar created this gist Oct 9, 2018.
    1 change: 1 addition & 0 deletions DOCKER_COMPOSE.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Scripts to run specific services