Hi,
I’ve made a docker-compose file that use mysql and prestashop images.
It works until synchronization of data. I’ve got all my directories synced but the modules/ one.
Can you help me on this ?
My docker-compose.yml file FI:
db:
image: mysql:5.5
container_name: mysql
restart: always
volumes:
- ~/db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: prestashop
MYSQL_USER: root
MYSQL_PASSWORD: root
webapp:
image: prestashop/prestashop:1.6.1.1
container_name: webapp
links:
- db:db
tty: true
working_dir: /var/www/html
volumes:
- ~/webapp:/var/www/html
ports:
- "8000:80"
restart: always
environment:
PS_DB_HOST: db:3306
PS_DB_USER: root
PS_DB_PASSWORD: root
PS_DEV_MODE: 1
PS_FOLDER_ADMIN: admin1616
My config:
Docker for Mac: version: 17.03.1-ce-mac12 (d1db12684)
macOS: version 10.12.3 (build: 16D30)
EDIT: the prestashop image was already defining VOLUMES for the modules/ directory
I had to rebuild image with VOLUMES: /var/html/ instead of these 3 volumes.
Cheers,
Bilal