-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1022 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
# SQL Database server
mariadb:
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
volumes:
- ./data/mariadb:/var/lib/mysql
# Make sure no other processes are using this port
# expose:
# - 3306
ports:
- 3306
# Interface for mariadb
phpmyadmin:
depends_on:
- mariadb
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_HOST=mariadb
- PMA_PORT=3306
- PMA_USER=root
- PMA_PASSWORD=my-secret-pw
- PMA_ARBITRARY=1
# Nginx webserver
nginx:
image: nginx:latest
restart: always
ports:
- "80:80"
volumes:
- ./projects:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
links:
- php-fpm
# PHP fpm image
php-fpm:
# Used custom php image to install core extensions
build: docker/php-fpm
restart: always
volumes:
- ./projects:/var/www/html