35 lines
722 B
YAML
Executable File
35 lines
722 B
YAML
Executable File
services:
|
|
ryot-db:
|
|
container_name: ryot-db
|
|
image: postgres:16-alpine
|
|
environment:
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=postgres
|
|
networks:
|
|
- ryot
|
|
restart: always
|
|
volumes:
|
|
- ./database/postgres_storage:/var/lib/postgresql/data
|
|
|
|
ryot:
|
|
container_name: ryot
|
|
image: ghcr.io/ignisda/ryot:latest
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@ryot-db:5432/postgres
|
|
depends_on:
|
|
- ryot-db
|
|
networks:
|
|
- ryot
|
|
- reverse-proxy
|
|
ports:
|
|
- 8584:8000
|
|
restart: always
|
|
|
|
networks:
|
|
ryot:
|
|
name: ryot
|
|
reverse-proxy:
|
|
name: reverse-proxy
|
|
external: true
|