about summary refs log tree commit diff
path: root/docker-compose.yml
blob: fc95f44a2b1e17842dbac9ef4af80635b8f4c4d1 (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
46
version: "3"

services:
  freitagsfoo:
    build: .
    ports:
      - "8085:8085"
    volumes:
      - "./config.yml:/config.yml"
    depends_on:
      - postgres
    networks:
      - database

  postgres:
    image: postgres:12.1
    hostname: postgres
    ports:
      - "5432:5432"
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    volumes:
      - postgres_volume:/var/lib/postgresql
    networks:
      - database
    restart: unless-stopped

  pgadmin:
    image: dpage/pgadmin4
    depends_on:
      - postgres
    ports:
      - "5555:80"
    environment:
      PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
      PGADMIN_DEFAULT_PASSWORD: admin
    restart: unless-stopped
    networks:
      - database

volumes:
  postgres_volume: {}

networks:
  database: