Deploy an App on Docker Containers with no error

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

@Inderpreet

could you help me? seems the right solution. will you mark it for success? thank you, - jenna

@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. :innocent:

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.

@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.

@vijin.palazhi would you mind take a look? appreciate your time. thank you.

@rahul456
would you mind take a look? appreciate your time. thank you.

@Jenna, can you please share your KKE user details ?

@rahul456.

it is jenna
email: [email protected]

thank you very much. :slight_smile:

@Jenna, sorry for the issue, this is marked as pending for you, please give it an another try.

@rahul456

It failed again without any explanation. :frowning:

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

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

thank you! very appreciated. :slight_smile:

@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

Now its completed successfully :slight_smile: thanks Team @rahul456