docker-compose.yaml
author ymh <ymh.work@gmail.com>
Sat, 27 Jul 2024 00:57:57 +0200
changeset 130 5eeebcbdee22
parent 129 f6b392c37e10
child 131 2a18dfe8bfc0
permissions -rw-r--r--
use right version for lucene and make players work again
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
129
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
services:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
  server:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    build:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
      context: .
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
      dockerfile: docker/server/server.dockerfile
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    environment:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
      - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/tralalere
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
      - DEBUG=${DEBUG}
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    depends_on:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
      db:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
        condition: service_healthy
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    volumes:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
      - ./data_docker/static:/static
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
      - ./data_docker/index:/index
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
  db:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    image: postgres
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    restart: always
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    volumes:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
      - ./data_docker/db:/var/lib/postgresql/data
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    environment:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
      POSTGRES_DB: "tralalere"
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
      POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
      POSTGRES_USER: "${POSTGRES_USER}"
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
      POSTGRES_HOST_AUTH_METHOD: "md5"
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
      POSTGRES_INITDB_ARGS: "--auth-local=md5"
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
    healthcheck:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
      test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}"]
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
      interval: 10s
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
      timeout: 5s
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
      retries: 5
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
  caddy:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
    build:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
      context: docker/web
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
      dockerfile: web.dockerfile
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
    volumes:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
      - ./data_docker/static:/static
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
    ports:
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
      - "80:80"
f6b392c37e10 lucene 7.7.1 compiled but not compatible with ldt indexation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
      - "443:443"