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