summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: c2a6b6a596b2b2a1f10786e3496b6809d6a0e7e7 (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
48
49
50
51
version: "3"

services:
  db:
    image: postgres
    restart: unless-stopped
    ports:
      - "5432:5432"
    environment:
      - "POSTGRES_DB=${DB_NAME}"
      - "POSTGRES_USER=${DB_USER}"
      - "POSTGRES_PASSWORD=${DB_PASSWORD}"
    volumes:
      - "db:/var/lib/postgresql/data"

  app:
    build:
      context: docker/php
    volumes:
      - "./:/var/www/html"

  web:
    build:
      context: docker/nginx
    ports:
      - "8080:80"
    volumes:
      - "./:/var/www/html"

  # gemini:
  #   build:
  #     context: docker/php
  #   ports:
  #     - "1965:1965"
  #   environment:
  #     - "GEMINI_HOSTNAME=0.0.0.0"
  #   volumes:
  #     - "./:/var/www/html"
  #   command: "./bin/gemini.sh"

  adminer:
    image: adminer
    ports:
      - "8081:8080"
    environment:
      - "ADMINER_DEFAULT_SERVER=db"
    volumes:
      - "./docker/adminer.css:/var/www/html/adminer.css"

volumes:
  db: