versia-go/compose.yml

38 lines
770 B
YAML
Raw Permalink Normal View History

2024-08-20 22:43:26 +02:00
x-versia: &versia-default
build: .
env_file: [ .env, .env.local ]
depends_on:
- nats
2024-08-11 03:51:22 +02:00
services:
2024-08-20 22:43:26 +02:00
# db:
# image: postgres:16.2-alpine
# environment:
# POSTGRES_DB: postgres
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# ports:
# - "5432:5432"
2024-08-11 03:51:22 +02:00
nats:
image: nats:2.9.25-scratch
ports:
- "4222:4222"
- "8222:8222"
command: "--js"
2024-08-20 22:43:26 +02:00
versia-1:
<<: *versia-default
hostname: versia.localhost
2024-08-20 22:43:26 +02:00
volumes:
- type: bind
source: ./1.db
target: /app/test.db
environment:
VERSIA_PORT: 8080
VERSIA_INSTANCE_ADDRESS: http://versia.localhost:8080
2024-08-20 22:43:26 +02:00
NATS_URI: nats://nats:4222
NATS_STREAM_NAME: versia-go
2024-08-20 22:43:26 +02:00
ports:
- "8080:8080"