aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 340b2552077905fc5c66c9a04ba53a20ebcece1e (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
services:

  clog:
    container_name: clog
    image: clog:latest
    build: .
    ports:
      - "8888:8888"
    environment:
      - POSTGRES_DB=${POSTGRES_DB}
      - POSTGRES_HOST=postgres
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_USER=${POSTGRES_USER}
    depends_on:
      - postgres

  postgres:
    container_name: clog-postgres
    image: postgres:14-alpine
    volumes:
      - .vols/database:/var/lib/postgresql/data
    ports:
      - "5555:5432"
    environment:
      - POSTGRES_DB=${POSTGRES_DB}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_USER=${POSTGRES_USER}