-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.28 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
version: '3'
services:
db:
build:
./docker/mysql
volumes:
- "./docker/mysql/data:/var/lib/mysql"
- ./logs:/var/log/mysql
# restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
image: wordpress:latest
volumes:
- "./wp/:/var/www/html/"
# restart: always
depends_on:
- db
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress
https-portal:
image: steveltn/https-portal:1
ports:
- "80:80"
- "443:443"
# restart: always
depends_on:
- wordpress
environment:
DOMAINS: 'localhost -> http://wordpress:80'
STAGE: 'local'
volumes:
- ./infra/nginx/conf.d/server.conf.erb:/var/lib/nginx-conf/server.conf.erb:ro
- ./infra/nginx/conf.d/server.ssl.conf.erb:/var/lib/nginx-conf/server.ssl.conf.erb:ro
- ./infra/nginx/certs:/var/lib/https-portal
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# # environment:
# # - PMA_ARBITRARY=1
# # - PMA_HOST=mysql
# # - PMA_USER=root
# # - PMA_PASSWORD=password
# depends_on:
# - db
# ports:
# - 8080:80
# volumes:
# - /sessions