-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 884 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 884 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
42
43
44
45
version: '3.3'
services:
db:
image: mariadb:latest
container_name: ${PROJECT}_db
restart: unless-stopped
volumes:
- mysql:/var/lib/mysql
networks:
- default
environment:
MYSQL_ROOT_PASSWORD: ${ROOT_PASSWORD}
MYSQL_DATABASE: wp_${PROJECT}
MYSQL_USER: ${WPUSER}
MYSQL_PASSWORD: ${WPPASSWORD}
wordpress:
image: dcgsteve/wordpress:latest
container_name: ${PROJECT}
restart: unless-stopped
volumes:
- html:/var/www/html
depends_on:
- db
networks:
- proxy
- default
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: ${WPUSER}
WORDPRESS_DB_NAME: wp_${PROJECT}
WORDPRESS_DB_PASSWORD: ${WPPASSWORD}
VIRTUAL_HOST: ${URL}
VIRTUAL_PORT: 80
networks:
default:
proxy:
external:
name: proxyLAN
volumes:
html:
mysql: