-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 862 Bytes
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
version: '3'
services:
db:
image: mariadb:10.4.3
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_ROOT_HOST: '%'
volumes:
- ./db:/var/lib/mysql
ports:
- 44006:3306
adminer:
image: adminer:4.7.1
restart: always
ports:
- 44100:8080
web:
image: nginx:1.15.8
ports:
- 44000:80
volumes:
- ./wordpress:/wordpress
- ./additional-configurations/site.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
php:
build:
context: ./
dockerfile: additional-configurations/php-Dockerfile
volumes:
- ./wordpress:/wordpress
- ./additional-configurations/php.ini:/usr/local/etc/php/php.ini
depends_on:
- db