summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 6d5f1c18dcf4cff1af924e32d0c54ac25b64c90b (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
version: "3"

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

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

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

  adminer:
    image: adminer
    ports:
      - "8081:8080"
    environment:
      - "ADMINER_DEFAULT_SERVER=db"

volumes:
  db: