Skip to content

Instantly share code, notes, and snippets.

@d6y
Last active August 31, 2025 16:21
Show Gist options
  • Select an option

  • Save d6y/1862ec039f9bda019417f1e42169fd05 to your computer and use it in GitHub Desktop.

Select an option

Save d6y/1862ec039f9bda019417f1e42169fd05 to your computer and use it in GitHub Desktop.
A docker compose file for use with Pagecord
name: pagecord-local
networks:
pagecord-net:
services:
postgres:
image: 'postgres:16.8'
restart: no
expose:
- '5432'
ports:
- '5432:5432'
networks:
pagecord-net:
aliases:
- postgres
environment:
TZ: UTC
PGTZ: UTC
POSTGRES_USER: pagecord
POSTGRES_PASSWORD: password
volumes:
- .api//target/postgresql:/var/lib/postgresql
redis:
image: redis:7-alpine
container_name: redis
restart: unless-stopped
ports:
- '6379:6379'
networks:
pagecord-net:
aliases:
- redis
volumes:
- redis-data:/data
command: ["redis-server", "--appendonly", "yes"]
volumes:
redis-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment