Wordpress config: Differentiate the service name from the container name.
This commit is contained in:
		@@ -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