summaryrefslogtreecommitdiffstats
path: root/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml
blob: fc0a2d0bec1c62a207e69a88dc480aef20144901 (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
version: '3'

services:
  db:
    image: postgres
    restart: always
    volumes:
      - db:/var/lib/postgresql/data
    env_file:
      - db.env

  app:  
    build: ./app
    restart: always
    ports:
      - 8080:80
    volumes:
      - nextcloud:/var/www/html
    env_file:
      - db.env
    links:
      - db

volumes:
  db:
  nextcloud: