mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Add restart policy to Docker services
This commit is contained in:
@@ -4,6 +4,7 @@ services:
|
|||||||
server:
|
server:
|
||||||
build: .
|
build: .
|
||||||
image: kretts/lunar-tear:latest
|
image: kretts/lunar-tear:latest
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
LUNAR_LISTEN: 0.0.0.0:8003
|
LUNAR_LISTEN: 0.0.0.0:8003
|
||||||
LUNAR_PUBLIC_ADDR: 127.0.0.1:8003
|
LUNAR_PUBLIC_ADDR: 127.0.0.1:8003
|
||||||
@@ -23,6 +24,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.cdn
|
dockerfile: Dockerfile.cdn
|
||||||
image: kretts/octo-cdn:latest
|
image: kretts/octo-cdn:latest
|
||||||
|
restart: unless-stopped
|
||||||
command: ["--listen", "0.0.0.0:8080", "--public-addr", "10.0.2.2:8080"]
|
command: ["--listen", "0.0.0.0:8080", "--public-addr", "10.0.2.2:8080"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./assets:/opt/octo-cdn/assets
|
- ./assets:/opt/octo-cdn/assets
|
||||||
@@ -34,6 +36,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.auth
|
dockerfile: Dockerfile.auth
|
||||||
image: kretts/auth-server:latest
|
image: kretts/auth-server:latest
|
||||||
|
restart: unless-stopped
|
||||||
command: ["--listen", "0.0.0.0:3000", "--db", "db/auth.db"]
|
command: ["--listen", "0.0.0.0:3000", "--db", "db/auth.db"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/opt/auth-server/db
|
- ./db:/opt/auth-server/db
|
||||||
|
|||||||
Reference in New Issue
Block a user