versia-go/compose.yml

53 lines
1.1 KiB
YAML
Raw 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: lysand-test.i.devminer.xyz
volumes:
- type: bind
source: ./1.db
target: /app/test.db
environment:
VERSIA_PORT: 8080
2024-08-20 22:43:26 +02:00
NATS_URI: nats://nats:4222
PUBLIC_ADDRESS: https://lysand-test.i.devminer.xyz:8080
2024-08-20 22:43:26 +02:00
NATS_STREAM_NAME: versia-go-1
ports:
- "8080:8080"
2024-08-20 22:43:26 +02:00
versia-2:
<<: *versia-default
hostname: lysand-test-2.i.devminer.xyz
volumes:
- type: bind
source: ./2.db
target: /app/test.db
environment:
VERSIA_PORT: 8081
2024-08-20 22:43:26 +02:00
NATS_URI: nats://nats:4222
PUBLIC_ADDRESS: https://lysand-test-2.i.devminer.xyz:8081
2024-08-20 22:43:26 +02:00
NATS_STREAM_NAME: versia-go-2
ports:
- "8081:8081"