aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 1c6968f59dfcfadd21241e2aff3237e6ab044635 (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
services:
  nginx:
    build: ./docker/nginx
    ports:
      - "8080:80"
    volumes:
      - ./src:/var/www/html
    depends_on:
      - php

  php:
    build: ./docker/php
    volumes:
      - ./src:/var/www/html
    env_file:
      - .env
    depends_on:
      - mariadb
      - mailpit

  mailpit:
    image: axllent/mailpit:v1.24
    ports:
      - "8025:8025"

  mariadb:
    image: mariadb:10.11.11
    env_file:
      - .env
    volumes:
      - db_data:/var/lib/mysql
      - ./docker/mariadb/init.sql:/docker-entrypoint-initdb.d/init.sql
    ports:
      - "3306:3306"

volumes:
  db_data: