Jenna
September 26, 2020, 4:20pm
#1
hi @Inderpreet
my task failed with no error displayed. Docker images and container’s all presented. please check what went wrong. Early I can’t access my portal, but after logout and re-login. Task was shown but slow. thank you, Jenna
docker-compose.yml
version: ‘3’
services:
DB:
container_name: mysql_web
image: mariadb:latest
ports:
- 3306:3306
volumes:
- /var/lib/mysql:/var/lib/mysql:rw
environment:
MYSQL_DATABASE: database_web
MYSQL_PASSWORD: tonysteve11
MYSQL_ROOT_PASSWORD: anytony
MYSQL_USER: tonysteve
web:
container_name: php_web
image: php:7.3.22-apache-stretch
ports:
- "6100:80"
depends_on:
- DB
volumes:
- /var/www/html:/var/www/html
1 Like
Jenna
September 27, 2020, 5:43pm
#2
@Inderpreet
could you help me? seems the right solution. will you mark it for success? thank you, - jenna
Jenna
September 30, 2020, 4:56am
#3
@Inderpreet @Ayman
would you take a look for my solution? would you guide me what went wrong?
or should I just click the “request Review” button? haven’t use it yet.
thank you,
Jenna
Hello, @Jenna
I think you don’t require to define MYSQL_USER in the docker-compose file. You can go with the “Review” section.
Jenna
October 3, 2020, 3:26am
#5
@Inderpreet @Ayman
would you take a look for my solution? I did the request review process and made some minor change according the peer review. but still failed with no error explaination. I believe it is the validation might oversight my solution.
I verified, all DB and Web run as requested. thank you.
Jenna
October 3, 2020, 3:34am
#6
@vijin.palazhi would you mind take a look? appreciate your time. thank you.
Jenna
October 3, 2020, 5:17pm
#7
@rahul456
would you mind take a look? appreciate your time. thank you.
@Jenna , can you please share your KKE user details ?
Jenna
October 3, 2020, 9:00pm
#10
@rahul456 .
it is jenna
email: [email protected]
thank you very much.
@Jenna , sorry for the issue, this is marked as pending for you, please give it an another try.
Jenna
October 4, 2020, 8:00pm
#12
@rahul456
It failed again without any explanation.
I verified the containers and curl, it all looks good. Not sure what the validation script is looking for…
my docker-compose.yml
version: ‘3’
services:
DB:
container_name: mysql_blog
image: mariadb:latest
ports:
- 3306:3306
volumes:
- /var/lib/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: database_blog
MYSQL_PASSWORD: Asd$qw123
MYSQL_ROOT_PASSWORD: ghj&nm789
MYSQL_USER: jenna
web:
container_name: php_blog
image: php:7.2-apache
ports:
- "5003:80"
depends_on:
- DB
volumes:
- /var/www/html:/var/www/html
docker-compose up -d
docker ps -a
docker exec -it php_blogt bash
ls index.html
docker exec -it mysql_blog bash
mysql -p ghj&nm789
jump_host: curl 172.16.238.10:5003
1 Like
Devops
October 4, 2020, 8:14pm
#13
Maybe incorrect indentation is the reason for failing. Have you trying printenv for each variable?
@Jenna , sorry for the issue, this is marked success for you
Jenna
October 5, 2020, 2:52pm
#15
thank you! very appreciated.
selvag
October 15, 2020, 11:47am
#16
@rahul456 , @inderpreet
I am facing same issue failed without any error. Its failed without any error.
yml file
after failed message also i am able to curl
cat docker-compose.yml
version: ‘3’
services:
web:
image: php:apache
container_name: php_apache
depends_on:
- DB
ports:
- “3000:80”
volumes:
- /var/www/html:/var/www/html
DB:
image: mariadb:latest
container_name: mysql_apache
ports:
- “3306:3306”
volumes:
- /var/lib/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: database_apache
MYSQL_USER: selva
MYSQL_PASSWORD: database
MYSQL_ROOT_PASSWORD: “ghjnm789”
@selvag , sorry for the issue, this is marked pending for you, please give it an another try.
1 Like
selvag
October 16, 2020, 5:54am
#18
Now its completed successfully thanks Team @rahul456