Skip to content

Commit c1db643

Browse files
committed
add networks
1 parent c7b12ed commit c1db643

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docker-compose.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
version: '2'
22
services:
33
nginx:
4-
image: evild/alpine-nginx:latest
4+
image: evild/alpine-nginx:1.11.1-libressl
55
restart: always
6-
links:
7-
- php
86
volumes:
97
- wordpress-data:/var/www/html/:ro
108
- ./nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
119
- ./nginx/conf.d:/etc/nginx/conf.d:ro
1210
ports:
1311
- 80:80
1412
- 443:443
13+
networks:
14+
- front
1515
php:
1616
image: evild/alpine-wordpress:latest
1717
restart: always
1818
volumes:
1919
- wordpress-data:/var/www/html
2020
- ./php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
21-
depends_on:
22-
- db
23-
links:
24-
- db
2521
environment:
2622
- WORDPRESS_DB_NAME=wpdb
2723
- WORDPRESS_TABLE_PREFIX=wp_
2824
- WORDPRESS_DB_HOST=db
2925
- WORDPRESS_DB_PASSWORD=password
26+
networks:
27+
- front
28+
- back
3029
db:
3130
image: mariadb:latest
3231
restart: always
3332
volumes:
3433
- wordpress-db-data:/var/lib/mysql
3534
environment:
3635
- MYSQL_ROOT_PASSWORD=password
36+
networks:
37+
- back
3738
volumes:
3839
wordpress-data:
3940
driver: local
4041
wordpress-db-data:
4142
driver: local
43+
networks:
44+
front:
45+
back:

0 commit comments

Comments
 (0)