Skip to content

Instantly share code, notes, and snippets.

@davidostermann
Last active October 30, 2025 14:53
Show Gist options
  • Save davidostermann/0190da1e1544dfd1625e53ca8a74e258 to your computer and use it in GitHub Desktop.
Save davidostermann/0190da1e1544dfd1625e53ca8a74e258 to your computer and use it in GitHub Desktop.

Revisions

  1. davidostermann revised this gist Nov 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ services :
    ports:
    - "5432:5432"
    environment:
    POSTGRES_USER: postgres
    POSTGRES_USER: user1
    POSTGRES_PASSWORD: changeme
    POSTGRES_DB: tododb
    admin:
  2. davidostermann revised this gist Nov 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    version: '2'
    version: '3.1'
    services :
    db:
    image: postgres:10-alpine
  3. davidostermann revised this gist Nov 6, 2017. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,17 @@
    version: '2'
    services :
    postgres:
    db:
    image: postgres:10-alpine
    ports:
    - "5432:5432"
    volumes:
    - ~/data/postgres:/data/postgres
    environment:
    POSTGRES_USER: postgres
    POSTGRES_PASSWORD: changeme
    POSTGRES_DB: tododb
    PGDATA: /data/postgres
    adminer:
    admin:
    image: adminer
    restart: always
    depends_on:
    - postgres
    - db
    ports:
    - 8080:8080
  4. davidostermann revised this gist Nov 6, 2017. 1 changed file with 0 additions and 12 deletions.
    12 changes: 0 additions & 12 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,5 @@
    version: '2'
    services :
    web :
    build: .
    command: npm start
    volumes:
    - .:/usr/app
    - /usr/app/node_modules
    ports:
    - "3000:3000"
    depends_on:
    - postgres
    environment:
    DATABASE_URL: postgres://postgres:changeme@postgres/tododb
    postgres:
    image: postgres:10-alpine
    ports:
  5. davidostermann created this gist Nov 6, 2017.
    32 changes: 32 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    version: '2'
    services :
    web :
    build: .
    command: npm start
    volumes:
    - .:/usr/app
    - /usr/app/node_modules
    ports:
    - "3000:3000"
    depends_on:
    - postgres
    environment:
    DATABASE_URL: postgres://postgres:changeme@postgres/tododb
    postgres:
    image: postgres:10-alpine
    ports:
    - "5432:5432"
    volumes:
    - ~/data/postgres:/data/postgres
    environment:
    POSTGRES_USER: postgres
    POSTGRES_PASSWORD: changeme
    POSTGRES_DB: tododb
    PGDATA: /data/postgres
    adminer:
    image: adminer
    restart: always
    depends_on:
    - postgres
    ports:
    - 8080:8080