I try to learn about container, but i have a problem with my docker-compose.yml file, after i run the docker compose up, i always get the same error:
<blockquote>
"ERROR: yaml.scanner.ScannerError: mapping values are not allowed
here"
</blockquote>
even if i changed the mount path to docker volume, i got the same error, this is my
file
<blockquote>
"ERROR: yaml.scanner.ScannerError: mapping values are not allowed
here"
</blockquote>
even if i changed the mount path to docker volume, i got the same error, this is my
Code:
yml
Code:
version: "3"
services:
database:
image: mariadb
ports:
- "3260:3260"
volumes:
- /home/randy/Desktop/Latihan/wordpress-mariadb/mariadb:var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
wordpress:
image: wordpress
ports:
- "2000:80"
volumes:
- /home/randy/Desktop/Latihan/wordpress-mariadb/wordpress:/var/www/html
environment:
WORDPRESS_DB_PASSWORD: root
depends_on:
- database
links:
- database