Skip to content

Instantly share code, notes, and snippets.

@samgj18
Last active June 7, 2024 23:31
Show Gist options
  • Save samgj18/145d150f17d42bf1818fa09fa3f419d0 to your computer and use it in GitHub Desktop.
Save samgj18/145d150f17d42bf1818fa09fa3f419d0 to your computer and use it in GitHub Desktop.
version: "3.9"
services:
postgres:
user: root
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
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
redis:
restart: unless-stopped
image: "redis/redis-stack:latest"
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:
- ./resource/mockserver:/mockserver
networks:
- absenty
ports:
- "1080:1080"
command: -logLevel DEBUG -serverPort 1080
networks:
absenty:
@samgj18
Copy link
Author

samgj18 commented Apr 21, 2024

To run it use:

curl -fsSL https://gist.githubusercontent.com/samgj18/145d150f17d42bf1818fa09fa3f419d0/raw/ -o absenty.docker-compose.yml && docker-compose -f absenty.docker-compose.yml up -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment