Skip to content

Sample for apache-php7#42

Merged
glours merged 7 commits intodocker:masterfrom
kouul:master
Apr 6, 2020
Merged

Sample for apache-php7#42
glours merged 7 commits intodocker:masterfrom
kouul:master

Conversation

@kouul
Copy link
Contributor

@kouul kouul commented Apr 6, 2020

No description provided.

@kouul kouul mentioned this pull request Apr 6, 2020
Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kouul
Can you also update the main README.md to add your sample in the Single service samples section please?

web:
build: app
ports:
- '8008:80'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the default port of Apache?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

web:
build: app
ports:
- '8008:80'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the default port of Apache?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- '8008:80'
volumes:
- ./app:/var/www/html/

No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a new line at the end of the file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

kouul added 6 commits April 6, 2020 19:41
Signed-off-by: kouul <maulloohans@gmail.com>
Signed-off-by: kouul <maulloohans@gmail.com>
Signed-off-by: kouul <maulloohans@gmail.com>
Signed-off-by: kouul <maulloohans@gmail.com>
Signed-off-by: kouul <maulloohans@gmail.com>
Signed-off-by: kouul <maulloohans@gmail.com>
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2bc8271fee81 php-docker_web "docker-php-entrypoi…" About a minute ago Up About a minute 0.0.0.0:8008->80/tc php-docker_web_1
Copy link
Collaborator

@glours glours Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to update the port in the docker ps description ;-)

2bc8271fee81 php-docker_web "docker-php-entrypoi…" About a minute ago Up About a minute 0.0.0.0:8008->80/tc php-docker_web_1
```

After the application starts, navigate to `http://localhost:8008` in your web browser or run:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


After the application starts, navigate to `http://localhost:8008` in your web browser or run:
```
$ curl localhost:8008
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops my bad.. its fixed 👍

Signed-off-by: kouul <maulloohans@gmail.com>
Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours merged commit 40c3caa into docker:master Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants