File size: 680 Bytes
ed2f842
 
 
 
 
 
 
 
 
 
 
 
 
a25490a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: '3.8'

services:
  mep-hub:
    build: ./hub
    container_name: mep-hub
    restart: always
    ports:
      - "8000:8000"
    volumes:
      - ./hub_data:/app/logs
    environment:
      - TZ=UTC
      - MEP_DATABASE_URL=postgresql://mep:mep@postgres:5432/mep
    depends_on:
      - postgres

  postgres:
    image: postgres:16
    container_name: mep-postgres
    restart: always
    environment:
      - POSTGRES_USER=mep
      - POSTGRES_PASSWORD=mep
      - POSTGRES_DB=mep
    volumes:
      - ./hub_data/pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U mep -d mep"]
      interval: 10s
      timeout: 5s
      retries: 5