Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add volume to wordpress image: docker compose #1

Open
grumpyp opened this issue Feb 4, 2023 · 0 comments
Open

Add volume to wordpress image: docker compose #1

grumpyp opened this issue Feb 4, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@grumpyp
Copy link
Owner

grumpyp commented Feb 4, 2023

Instead of manually changing the .htaccess in the docker container, add a .htaaccess which maps it to the /var/www/html directory in the container itself.

pseudo code

version: '3.3'
services:
  wordpress:
    image: wordpress:latest
    ports:
      - 8080:80
    volumes:
      - ./htaccess:/var/www/html/.htaccess

@grumpyp grumpyp added enhancement New feature or request good first issue Good for newcomers labels Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant