add: network and volumes
This commit is contained in:
parent
78b202c264
commit
0b52e973e3
@ -1,3 +1,4 @@
|
||||
version: "3"
|
||||
services:
|
||||
nginx:
|
||||
container_name: nginx
|
||||
@ -9,6 +10,8 @@ services:
|
||||
- wordpress:/var/www/wordpress
|
||||
depends_on:
|
||||
- wordpress
|
||||
networks:
|
||||
- inception
|
||||
|
||||
wordpress:
|
||||
container_name: wordpress
|
||||
@ -20,6 +23,8 @@ services:
|
||||
- mariadb
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- inception
|
||||
|
||||
mariadb:
|
||||
container_name: mariadb
|
||||
@ -29,7 +34,26 @@ services:
|
||||
- mariadb:/data
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- inception
|
||||
|
||||
volumes:
|
||||
|
||||
wordpress:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: 'none'
|
||||
o: 'bind'
|
||||
device: '/home/cchauvet/data/wp-files/'
|
||||
|
||||
mariadb:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: 'none'
|
||||
o: 'bind'
|
||||
device: '/home/cchauvet/data/wp-db/'
|
||||
|
||||
|
||||
networks:
|
||||
inception:
|
||||
driver: bridge
|
||||
|
Loading…
Reference in New Issue
Block a user