add: container name, depend_on, env_file, maria db
This commit is contained in:
parent
ed3195f536
commit
1d5eb6c1b6
@ -1,17 +1,35 @@
|
|||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
container_name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
build: nginx
|
build: nginx
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- wordpress:/var/www/wordpress
|
- wordpress:/var/www/wordpress
|
||||||
|
depends_on:
|
||||||
|
- wordpress
|
||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
|
container_name: wordpress
|
||||||
image: wordpress
|
image: wordpress
|
||||||
build: wordpress
|
build: wordpress
|
||||||
volumes:
|
volumes:
|
||||||
- wordpress:/var/www/wordpress
|
- wordpress:/var/www/wordpress
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
|
mariadb:
|
||||||
|
container_name: mariadb
|
||||||
|
image: mariadb
|
||||||
|
build: mariadb
|
||||||
|
volumes:
|
||||||
|
- mariadb:/data
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
wordpress:
|
wordpress:
|
||||||
|
mariadb:
|
||||||
|
Loading…
Reference in New Issue
Block a user