Skip to content

Commit

Permalink
chore: Added compose.override.yml.dist example to expose all contai…
Browse files Browse the repository at this point in the history
…ners ports for development
  • Loading branch information
ambroisemaupate committed Sep 12, 2024
1 parent fbd55d2 commit 24042c4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ compose.yml
compose.env
compose.standalone.yml
compose.override.yml
compose.override.yml.dist

*/temp*
*/*/temp*
Expand Down
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Main user is 1000 on Linux
USER_UID=1000
PUBLIC_APP_PORT=8781
PUBLIC_NGINX_PORT=8781
PUBLIC_VARNISH_PORT=8784
PUBLIC_PMA_PORT=8782
PUBLIC_DB_PORT=3306
Expand Down
29 changes: 29 additions & 0 deletions compose.override.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Expose all services default ports for local development
services:
db:
ports:
- ${PUBLIC_DB_PORT}:3306/tcp
nginx:
ports:
- ${PUBLIC_NGINX_PORT}:80/tcp
mailer:
ports:
- ${PUBLIC_MAILER_PORT}:8025/tcp
varnish:
ports:
- ${PUBLIC_VARNISH_PORT}:80/tcp
redis:
ports:
- ${PUBLIC_REDIS_PORT}:6379/tcp
pma:
ports:
- ${PUBLIC_PMA_PORT}:80/tcp
#app:
# # If your project requires private package you can share your ssh keys with the container
# volumes:
# - ./:/var/www/html:cached
# - /home/my-user/.ssh/id_ed25519:/home/www-data/.ssh/id_ed25519:ro

#solr:
# ports:
# - "${PUBLIC_SOLR_PORT}:8983/tcp"
2 changes: 0 additions & 2 deletions compose.symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ services:
USER_UID: ${USER_UID}
cap_add:
- SYS_NICE # CAP_SYS_NICE
ports:
- ${PUBLIC_DB_PORT}:3306/tcp
networks:
default:
volumes:
Expand Down
10 changes: 0 additions & 10 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ services:

pma:
image: phpmyadmin/phpmyadmin
ports:
- ${PUBLIC_PMA_PORT}:80/tcp
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
Expand Down Expand Up @@ -77,8 +75,6 @@ services:

nginx:
image: roadiz/nginx-alpine:latest
ports:
- ${PUBLIC_APP_PORT}:80/tcp
depends_on:
- app
# Nginx does not resolve `app` hostname correctly
Expand Down Expand Up @@ -134,8 +130,6 @@ services:
# context: ./docker/solr
# args:
# USER_UID: ${USER_UID}
## ports:
## - "${PUBLIC_SOLR_PORT}:8983/tcp"
# volumes:
# - "solr_data:/var/solr:delegated"
# environment:
Expand Down Expand Up @@ -166,8 +160,6 @@ services:

mailer:
image: mailhog/mailhog
# ports:
# - ${PUBLIC_MAILER_PORT}:8025/tcp
networks:
frontproxynet:
aliases:
Expand Down Expand Up @@ -205,8 +197,6 @@ services:
- app:app
- cron:cron
- worker:worker
# ports:
# - ${PUBLIC_VARNISH_PORT}:80/tcp
networks:
frontproxynet:
aliases:
Expand Down

0 comments on commit 24042c4

Please sign in to comment.