Unverified Commit 55a95913 authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Docker compose improvements (#865)

Ensure dbs are ready before starting the nakama container.
Bump docker compose Nakama to 3.12.0
parent 7dbdb14e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -14,6 +14,11 @@ services:
    ports:
      - "5432:5432"
      - "8080:8080"
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres", "-d", "nakama"]
      interval: 3s
      timeout: 3s
      retries: 5
  nakama:
    container_name: nakama
    image: heroiclabs/nakama:3.12.0
@@ -27,7 +32,8 @@ services:
    links:
      - "postgres:db"
    depends_on:
      - postgres
      postgres:
        condition: service_healthy
    volumes:
      - ./:/nakama/data
    expose:
+9 −2
Original line number Diff line number Diff line
@@ -12,6 +12,11 @@ services:
    ports:
      - "26257:26257"
      - "8080:8080"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
      interval: 3s
      timeout: 3s
      retries: 5
  nakama:
    image: heroiclabs/nakama:3.12.0
    entrypoint:
@@ -24,8 +29,10 @@ services:
    links:
      - "cockroachdb:db"
    depends_on:
      - cockroachdb
      - prometheus
      cockroachdb:
        condition: service_healthy
      prometheus:
        condition: service_started
    volumes:
      - ./:/nakama/data
    expose: