mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Add authentication server, dev CLI, Docker multi-service setup, and cross-platform improvements
This commit is contained in:
@@ -1,15 +1,41 @@
|
||||
name: lunar-tear
|
||||
|
||||
services:
|
||||
server:
|
||||
build: .
|
||||
image: kretts/lunar-tear:latest
|
||||
environment:
|
||||
LUNAR_HOST: 127.0.0.1
|
||||
LUNAR_HTTP_PORT: 8080
|
||||
LUNAR_GRPC_PORT: 8003
|
||||
LUNAR_LISTEN: 0.0.0.0:8003
|
||||
LUNAR_PUBLIC_ADDR: 127.0.0.1:8003
|
||||
LUNAR_OCTO_URL: http://cdn:8080
|
||||
LUNAR_AUTH_URL: http://auth:3000
|
||||
volumes:
|
||||
- ./assets:/opt/lunar-tear/assets
|
||||
- ./db:/opt/lunar-tear/db
|
||||
- ./assets:/opt/lunar-tear/assets
|
||||
ports:
|
||||
- 8003:8003
|
||||
depends_on:
|
||||
- cdn
|
||||
- auth
|
||||
|
||||
cdn:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.cdn
|
||||
image: kretts/octo-cdn:latest
|
||||
command: ["--listen", "0.0.0.0:8080", "--public-addr", "10.0.2.2:8080"]
|
||||
volumes:
|
||||
- ./assets:/opt/octo-cdn/assets
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
||||
auth:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.auth
|
||||
image: kretts/auth-server:latest
|
||||
command: ["--listen", "0.0.0.0:3000", "--db", "db/auth.db"]
|
||||
volumes:
|
||||
- ./db:/opt/auth-server/db
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
||||
Reference in New Issue
Block a user