Skip to content

Instantly share code, notes, and snippets.

@sagoez
Last active December 1, 2024 07:15
Show Gist options
  • Select an option

  • Save sagoez/145d150f17d42bf1818fa09fa3f419d0 to your computer and use it in GitHub Desktop.

Select an option

Save sagoez/145d150f17d42bf1818fa09fa3f419d0 to your computer and use it in GitHub Desktop.

Revisions

  1. sagoez revised this gist Jun 7, 2024. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions absenty.docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -14,10 +14,6 @@ services:
    - POSTGRES_PASSWORD=postgres
    - DEBUG=false
    - POSTGRES_DB=postgres
    # run postgres and execute the shell script on the init folder
    entrypoint: ["/init/entrypoint.sh"]
    volumes:
    - ./resource/storage/init:/init
    healthcheck:
    test: [ "CMD-SHELL", "pg_isready -U postgres" ]
    interval: 5s
  2. sagoez revised this gist May 18, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion absenty.docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,10 @@ services:
    - POSTGRES_PASSWORD=postgres
    - DEBUG=false
    - POSTGRES_DB=postgres
    entrypoint: ["/pg_ivm/entrypoint.sh"]
    # run postgres and execute the shell script on the init folder
    entrypoint: ["/init/entrypoint.sh"]
    volumes:
    - ./resource/storage/init:/init
    healthcheck:
    test: [ "CMD-SHELL", "pg_isready -U postgres" ]
    interval: 5s
  3. sagoez revised this gist May 18, 2024. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions absenty.docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@ version: "3.9"

    services:
    postgres:
    user: root
    image: postgres:16.1-alpine
    restart: unless-stopped
    networks:
    @@ -13,8 +14,7 @@ services:
    - POSTGRES_PASSWORD=postgres
    - DEBUG=false
    - POSTGRES_DB=postgres
    volumes:
    - ./local-data:/docker-entrypoint-initdb.d
    entrypoint: ["/pg_ivm/entrypoint.sh"]
    healthcheck:
    test: [ "CMD-SHELL", "pg_isready -U postgres" ]
    interval: 5s
    @@ -23,7 +23,7 @@ services:

    redis:
    restart: unless-stopped
    image: redis/redis-stack:latest
    image: "redis/redis-stack:latest"
    networks:
    - absenty
    ports:
  4. sagoez revised this gist May 5, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion absenty.docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ services:

    redis:
    restart: unless-stopped
    image: redis:7.2.4-alpine
    image: redis/redis-stack:latest
    networks:
    - absenty
    ports:
  5. sagoez revised this gist Apr 19, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion absenty.docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ services:
    environment:
    MOCKSERVER_INITIALIZATION_JSON_PATH: /mockserver/mockserver.json
    volumes:
    - ./resources/mockserver:/mockserver
    - ./resource/mockserver:/mockserver
    networks:
    - absenty
    ports:
  6. sagoez created this gist Apr 19, 2024.
    53 changes: 53 additions & 0 deletions absenty.docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    version: "3.9"

    services:
    postgres:
    image: postgres:16.1-alpine
    restart: unless-stopped
    networks:
    - absenty
    ports:
    - "5432:5432"
    environment:
    - POSTGRES_USER=postgres
    - POSTGRES_PASSWORD=postgres
    - DEBUG=false
    - POSTGRES_DB=postgres
    volumes:
    - ./local-data:/docker-entrypoint-initdb.d
    healthcheck:
    test: [ "CMD-SHELL", "pg_isready -U postgres" ]
    interval: 5s
    timeout: 5s
    retries: 5

    redis:
    restart: unless-stopped
    image: redis:7.2.4-alpine
    networks:
    - absenty
    ports:
    - "6379:6379"
    environment:
    - DEBUG=false
    healthcheck:
    test: [ "CMD", "redis-cli", "ping" ]
    interval: 1s
    timeout: 3s
    retries: 30

    mockserver:
    restart: unless-stopped
    image: mockserver/mockserver:latest
    environment:
    MOCKSERVER_INITIALIZATION_JSON_PATH: /mockserver/mockserver.json
    volumes:
    - ./resources/mockserver:/mockserver
    networks:
    - absenty
    ports:
    - "1080:1080"
    command: -logLevel DEBUG -serverPort 1080

    networks:
    absenty: