Wordpress config: Differentiate the service name from the container name.
This commit is contained in:
1 parent
1bcf5f3e7b
commit
4264e47577
1 file changed
+4
-4
@@ -17,7 +17,7 @@
|
||||
|
||||
services:
|
||||
|
||||
wp-db:
|
||||
db:
|
||||
container_name: wp-db
|
||||
image: mariadb:lts
|
||||
restart: always
|
||||
@@ -45,17 +45,17 @@ services:
|
||||
cpus: $WP_CPU_DB
|
||||
memory: $WP_MEM_DB
|
||||
|
||||
wp-app:
|
||||
app:
|
||||
container_name: wp-app
|
||||
image: wordpress:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:80
|
||||
depends_on:
|
||||
wp-db:
|
||||
db:
|
||||
condition: service_healthy
|
||||
links:
|
||||
- wp-db
|
||||
- db
|
||||
volumes:
|
||||
- ../../Volumes/WordPress/wordpress:/var/www/html
|
||||
environment:
|
||||
|
||||
Reference in new issue
Block a user