mirror of Walter-Sparrow / lunar-tear
1name: lunar-tear
2
3services:
4 server:
5 build: .
6 image: kretts/lunar-tear:latest
7 restart: unless-stopped
8 environment:
9 LUNAR_LISTEN: 0.0.0.0:8003
10 LUNAR_PUBLIC_ADDR: 127.0.0.1:8003
11 LUNAR_OCTO_URL: http://cdn:8080
12 LUNAR_AUTH_URL: http://auth:3000
13 LUNAR_ADMIN_LISTEN: 0.0.0.0:8082
14 LUNAR_ADMIN_TOKEN: ${LUNAR_ADMIN_TOKEN:-}
15 volumes:
16 - ./db:/opt/lunar-tear/db
17 - ./assets:/opt/lunar-tear/assets
18 ports:
19 - 8003:8003
20 - 127.0.0.1:8082:8082
21 depends_on:
22 - cdn
23 - auth
24
25 cdn:
26 build:
27 context: .
28 dockerfile: Dockerfile.cdn
29 image: kretts/octo-cdn:latest
30 restart: unless-stopped
31 command: ["--listen", "0.0.0.0:8080", "--public-addr", "10.0.2.2:8080"]
32 volumes:
33 - ./assets:/opt/octo-cdn/assets
34 ports:
35 - 8080:8080
36
37 auth:
38 build:
39 context: .
40 dockerfile: Dockerfile.auth
41 image: kretts/auth-server:latest
42 restart: unless-stopped
43 command: ["--listen", "0.0.0.0:3000", "--db", "db/auth.db"]
44 volumes:
45 - ./db:/opt/auth-server/db
46 ports:
47 - 3000:3000