29 lines
622 B
YAML
29 lines
622 B
YAML
services:
|
|
asciinema:
|
|
image: ghcr.io/asciinema/asciinema-server:20240428
|
|
ports:
|
|
- '16104:4000'
|
|
- '33419:4002'
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- asciinema_data:/var/opt/asciinema
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: docker.io/library/postgres:14
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
|
|
interval: 2s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
asciinema_data:
|
|
postgres_data:
|