summaryrefslogtreecommitdiff
blob: e2779d40cd3a171c3d2adfd3a5d7882ad42faf6d (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
47
version: '3.2'

services:
  http-serving:
    build:
      context: .
      dockerfile: Dockerfile.dev
    volumes:
      - type: "bind"
        source: "/var/log/go-gentoo"
        target: "/var/log/go-gentoo"
      - type: "bind"
        source: "."
        target: "/go/src/go-gentoo"
    environment:
      GO_GENTOO_LOG_FILE: '/var/log/go-gentoo/web.log'
      GO_GENTOO_DEVMODE: 'true'
#      GO_GENTOO_DEBUG: 'true'
    ports:
      - 127.0.0.1:5000:5000
    depends_on:
      - db
  db:
    image: postgres:12
    restart: always
    environment:
      POSTGRES_USER: ${GO_GENTOO_POSTGRES_USER:-root}
      POSTGRES_PASSWORD: ${GO_GENTOO_POSTGRES_PASSWORD:-root}
      POSTGRES_DB: ${GO_GENTOO_POSTGRES_DB:-gogentoo}
    volumes:
      - pgdata:/var/lib/postgresql/data
  pgadmin:
    image: dpage/pgadmin4
    logging:
      driver: none
    environment:
      PGADMIN_DEFAULT_EMAIL: admin@admin.org
      PGADMIN_DEFAULT_PASSWORD: admin
    volumes:
      - pgadmin:/root/.pgadmin
    ports:
      - "5050:80"
    restart: unless-stopped

volumes:
  pgdata:
  pgadmin: