0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 19:09:41 +00:00
libsql/docker-compose/docker-compose.yml
2023-10-17 17:41:26 +02:00

26 lines
482 B
YAML

version: "3.9"
services:
writer:
build: ..
environment:
- SQLD_NODE=primary
ports:
- "6000:5000"
reader:
build: ..
environment:
- SQLD_NODE=replica
- SQLD_PRIMARY_URL=http://writer:5001
- SQLD_HTTP_LISTEN_ADDR=0.0.0.0:8080
depends_on:
- writer
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- reader
ports:
- "6001:6001"
- "8080:8080"