wordpress:
image: wordpress
links:
- wordpress_db:mysql
ports:
- 8080:80
wordpress_db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: edureka
phpmyadmin:
image: corbinu/docker-phpmyadmin
links:
- wordpress_db:mysql
ports:
- 8181:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: edureka
Asked
Active
Viewed 407 times
0

Gerald Schneider
- 23,274
- 8
- 57
- 89
-
1I tried to format your yaml properly, but I believe by doing so I removed the actual problem. Please insert your actual yaml file contents in the same way, so it's formatted properly. If your error message contains a line number, please add that as well. – Gerald Schneider Jun 09 '22 at 09:50
-
Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) – Kostya Lubarsky Jun 09 '22 at 10:28
-
Please provide the actual content of your docker-compose.yml – Gerald Schneider Jun 09 '22 at 10:30
-
ok. it's fine now. Thank you for your response. – Kostya Lubarsky Jun 09 '22 at 10:36
1 Answers
0
Minimal docker-compose.yaml file:
version: "3.9"
services:
web:
image: nginx:alpine
ports:
- 80:80
For run: docker compose up
For run in background: docker compose up -d
For stop and delete: docker compose down

Andrey
- 101