Last active
June 7, 2024 23:31
-
-
Save sagoez/145d150f17d42bf1818fa09fa3f419d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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