-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (57 loc) · 1.13 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.5'
services:
db:
image: mysql:5.7.23
volumes:
- db_data:/var/lib/mysql
restart: on-failure
command: --default-authentication-plugin=mysql_native_password
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dbp-c
MYSQL_USER: root
MYSQL_PASSWORD: root
networks:
- wordoc
adminer:
depends_on:
- db
image: adminer
ports:
- '8080:8080'
networks:
- wordoc
wordpress:
image: wordoc/wordoc-cms:latest
build:
target: wp
context: .
env_file:
- docker/wordpress.env
environment:
- "APACHE_DOCUMENT_ROOT=/var/www/html/public"
depends_on:
- db
restart: on-failure
ports:
- '8090:80'
networks:
- wordoc
volumes:
- ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini
- ./docker/wordpress.env:/usr/src/wordpress/.env
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog
ports:
- '1025:1025'
- '8025:8025'
networks:
- wordoc
volumes:
db_data:
networks:
wordoc:
external: true