Skip to content

Instantly share code, notes, and snippets.

@0x6a68
Forked from ahromis/docker-compose.yml
Created January 4, 2021 11:06
Show Gist options
  • Select an option

  • Save 0x6a68/db18068ca731b51a22673857b7d4002e to your computer and use it in GitHub Desktop.

Select an option

Save 0x6a68/db18068ca731b51a22673857b7d4002e to your computer and use it in GitHub Desktop.

Revisions

  1. @ahromis ahromis renamed this gist Sep 21, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @ahromis ahromis revised this gist Jun 8, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -29,11 +29,11 @@ services:
    - postgres

    networks:
    gogs:
    gogs:
    driver: bridge

    volumes:
    db-data:
    db-data:
    driver: local
    gogs-data:
    gogs-data:
    driver: local
  3. @ahromis ahromis revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ services:
    networks:
    - gogs
    gogs:
    image: gogs/gogs
    image: gogs/gogs:latest
    restart: always
    ports:
    - "10022:22"
  4. @ahromis ahromis revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    ### Gogs docker-compose

    Run with `POSTGRES_USER=<your_db_user> POSTGRES_PASSWORD=<your_db_password> docker-comose up -d`
    Run with `POSTGRES_USER=<your_db_user> POSTGRES_PASSWORD=<your_db_password> docker-compose up -d`
  5. @ahromis ahromis revised this gist May 16, 2016. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ services:
    image: postgres:9.5
    restart: always
    environment:
    - "POSTGRES_USER=postgres"
    - "POSTGRES_USER=${POSTGRES_USER}"
    - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
    - "POSTGRES_DB=gogs"
    volumes:
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    ### Gogs docker-compose

    Run with `POSTGRES_PASSWORD=<your_password> docker-comose up -d`
    Run with `POSTGRES_USER=<your_db_user> POSTGRES_PASSWORD=<your_db_password> docker-comose up -d`
  6. @ahromis ahromis revised this gist May 16, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ services:
    restart: always
    ports:
    - "10022:22"
    - "3000"
    - "3000:3000"
    links:
    - postgres
    environment:
  7. @ahromis ahromis created this gist May 16, 2016.
    39 changes: 39 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    version: '2'
    services:
    postgres:
    image: postgres:9.5
    restart: always
    environment:
    - "POSTGRES_USER=postgres"
    - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
    - "POSTGRES_DB=gogs"
    volumes:
    - "db-data:/var/lib/postgresql/data"
    networks:
    - gogs
    gogs:
    image: gogs/gogs
    restart: always
    ports:
    - "10022:22"
    - "3000"
    links:
    - postgres
    environment:
    - "RUN_CROND=true"
    networks:
    - gogs
    volumes:
    - "gogs-data:/data"
    depends_on:
    - postgres

    networks:
    gogs:
    driver: bridge

    volumes:
    db-data:
    driver: local
    gogs-data:
    driver: local
    3 changes: 3 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    ### Gogs docker-compose

    Run with `POSTGRES_PASSWORD=<your_password> docker-comose up -d`