-
Notifications
You must be signed in to change notification settings - Fork 150
/
docker-compose.yml
58 lines (53 loc) · 1.07 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
version: '3'
networks:
wordpress:
services:
site:
build:
context: .
dockerfile: nginx.dockerfile
container_name: nginx
ports:
- 80:80
- 443:443
volumes:
- ./wordpress:/var/www/html:delegated
depends_on:
- php
- mysql
networks:
- wordpress
mysql:
image: mysql:5.7.29
container_name: mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_DATABASE: wp
MYSQL_USER: wp
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- wordpress
php:
build:
context: .
dockerfile: php.dockerfile
container_name: php
volumes:
- ./wordpress:/var/www/html:delegated
networks:
- wordpress
wp:
build:
context: .
dockerfile: php.dockerfile
container_name: wp
entrypoint: ['wp', '--allow-root']
volumes:
- ./wordpress:/var/www/html:delegated
networks:
- wordpress