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

services:
  db:
    image: mariadb
    # image: mysql
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=
    env_file:
      - db.env

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

volumes:
  db:
  nextcloud: