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