diff --git a/Dockerfile b/Dockerfile index 00f9a34..3ebba77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN cargo build --bin ${SERVICE} --release FROM debian:bullseye-slim AS target ARG SERVICE - +RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/target/release/${SERVICE} /app RUN chmod a+x /app diff --git a/docker-compose.live.yaml b/docker-compose.live.yaml new file mode 100644 index 0000000..c08916b --- /dev/null +++ b/docker-compose.live.yaml @@ -0,0 +1,62 @@ +# Temporary deployment stuff +version: '3.7' + +services: + redis: + image: redis:alpine + command: redis-server --save "" --appendonly no + container_name: redis + restart: always + ports: + - 6379:6379 + + api: + image: ghcr.io/genudine/saerro/api:latest + pull_policy: always + ports: + - 8000:8000 + links: + - redis + environment: + - REDIS_ADDR=redis://redis:6379 + - ROCKET_ADDRESS=0.0.0.0 + + ws_pc: + image: ghcr.io/genudine/saerro/websocket:latest + pull_policy: always + environment: + REDIS_ADDR: redis://redis:6379 + WS_ADDR: wss://push.nanite-systems.net/streaming?environment=ps2&service-id=s:saegd + WORLDS: 1,10,13,17,19,40 + links: + - redis + + ws_ps4us: + image: ghcr.io/genudine/saerro/websocket:latest + pull_policy: always + environment: + REDIS_ADDR: redis://redis:6379 + WS_ADDR: wss://push.nanite-systems.net/streaming?environment=ps2ps4us&service-id=s:saegd + WORLDS: 1000 + links: + - redis + + ws_ps4eu: + image: ghcr.io/genudine/saerro/websocket:latest + pull_policy: always + environment: + REDIS_ADDR: redis://redis:6379 + WS_ADDR: wss://push.nanite-systems.net/streaming?environment=ps2ps4eu&service-id=s:saegd + WORLDS: 2000 + links: + - redis + + task_prune: + image: ghcr.io/genudine/saerro/tasks:latest + command: /app prune + pull_policy: always + restart: "no" + environment: + REDIS_ADDR: redis://redis:6379 + links: + - redis \ No newline at end of file