-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.yml
56 lines (52 loc) · 1.26 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
version: '3.3'
services:
swag:
image: linuxserver/swag
container_name: swag
depends_on:
- wordpress
volumes:
- ./config:/config
- ./default:/config/nginx/site-confs/default
environment:
- URL=www.example.com
- VALIDATION=http
- TZ=Europe/London
- PUID=500
- PGID=500
ports:
- "443:443"
- "80:80"
wordpress:
image: wordpress:latest
container_name: wordpress
hostname: wordpress
depends_on:
- db
restart: always
ports:
- "8080:80"
volumes:
- /var/www/html/example/wp-content:/var/www/html/wp-content
- /var/www/html/example/custom.ini:/usr/local/etc/php/conf.d/custom.ini
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wp_db_user
WORDPRESS_DB_PASSWORD: wp_db_pass
WORDPRESS_DB_NAME: wp_db_name
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_MEMORY_LIMIT', '96M' );
db:
image: mysql:5.7
container_name: db
volumes:
- /var/lib/mysql:/var/lib/mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: mysql_root_pass
MYSQL_DATABASE: wp_db_name
MYSQL_USER: wp_db_user
MYSQL_PASSWORD: wp_db_pass