summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 9291d9105e219e2c1628bcc393f1e0f1eb5d20bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
  postgres:
    image: postgis/postgis:16-3.4
    container_name: postgis
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=gis
    ports:
      - "5433:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data
      - ./schema:/docker-entrypoint-initdb.d
    networks:
      - default

  cas:
    image: ghcr.io/cas-4/backend:latest
    container_name: cas
    hostname: api.cas.local
    extra_hosts:
      - "api.cas.local:0.0.0.0"
    networks:
      - default
      - cas

    environment:
      - RUST_LOG=${RUST_LOG}
      - DATABASE_URL=${DATABASE_URL}
      - JWT_SECRET=${JWT_SECRET}
      - ALLOWED_HOST=${ALLOWED_HOST}
      - EXPO_ACCESS_TOKEN=${EXPO_ACCESS_TOKEN}
      - UNREALSPEECH_TOKEN=${UNREALSPEECH_TOKEN}

    depends_on:
      - postgres
    ports:
      - "8000:8000"
    restart: unless-stopped
volumes:
  pgdata:

networks:
  cas:
    external: true