Skip to content

Conversation

@guycalledseven
Copy link

Don't know if this even qualifies as PR :) , and if this is acceptable, but I find it very useful to override few services via docker-compose.override.yml to map data dirs from containers to local volumes and put them inside ./data/ And by putting them next ./data/www/ this makes devilbox installations very compact.

eg.

  mysql:
    volumes:
      - ${DEVILBOX_PATH}/data/${MYSQL_SERVER}:/var/lib/mysql:rw${MOUNT_OPTIONS}
    user: mysql
  mongo:
    volumes:
      - ${DEVILBOX_PATH}/data/mongo-${MONGO_SERVER}:/data/db:rw${MOUNT_OPTIONS}

@cytopia cytopia self-assigned this Nov 19, 2022
@cytopia
Copy link
Owner

cytopia commented Nov 19, 2022

This sounds legit

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