Jump to content

Edit History

Seth Wallace

Seth Wallace

have you tried using a yml docker compose similar to the below. This should run the container but allow all the different services to connect with each other. 

 

# Use root/example as user/password credentials
version: '3.1'

services:

  # Mysql - accessable via adminer 
  db:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_USER: root
      MYSQL_PASSWORD: password
    ports:
      - 3360:3360

#Use this to admininster the databases.
  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

  # Prestashop module. 

  prestashop:
    image: prestashop/prestashop
    restart: always
#The volume allows the files to be mounted on the local machine for easy dev work.
    volumes:
       - ./var/www/prestashop:/var/www/html
    ports:
       - 80:80

run this from the command line like so

@root> docker-compose up

I hope this helps. 

Seth Wallace

Seth Wallace

have you tried using a yml docker compose similar to the below. This should run then container but allow all the different services to connect with each other?? 

 

# Use root/example as user/password credentials
version: '3.1'

services:

  # Mysql - accessable via adminer 
  db:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_USER: root
      MYSQL_PASSWORD: password
    ports:
      - 3360:3360

#Use this to admininster the databases.
  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

  # Prestashop module. 

  prestashop:
    image: prestashop/prestashop
    restart: always
#The volume allows the files to be mounted on the local machine for easy dev work.
    volumes:
       - ./var/www/prestashop:/var/www/html
    ports:
       - 80:80

run this from the command 

root>docker-compose up 

 

×
×
  • Create New...