diff --git a/.gitignore b/.gitignore index c9c30267ff..a972851d04 100644 --- a/.gitignore +++ b/.gitignore @@ -90,7 +90,7 @@ celerybeat-schedule *.sage.py # Environments -.env +*.env .venv env/ venv/ diff --git a/compose.dev.yml b/compose.dev.yml new file mode 100644 index 0000000000..049d79c954 --- /dev/null +++ b/compose.dev.yml @@ -0,0 +1,31 @@ +services: + bot: + build: + context: . + container_name: modmail-develop + restart: always + ports: + - 8555:8000 + volumes: + # Add your volume mount for local plugins here + - ../modmail-plugins/:/home/modmail/plugins/@local/ + env_file: + - .dev.env + environment: + - CONNECTION_URI=mongodb://db + - PUID=1000 + - PGID=1000 + depends_on: + - db + + db: + image: mongo + container_name: modmail-devdb + restart: always + ports: + - 27017:27017 + volumes: + - ./env/devdb:/data/db + environment: + - PUID=1000 + - PGID=1000 diff --git a/docker-compose.yml b/compose.yml similarity index 67% rename from docker-compose.yml rename to compose.yml index 1eb8ea6bd0..fc9e59ccaf 100644 --- a/docker-compose.yml +++ b/compose.yml @@ -4,7 +4,7 @@ services: container_name: modmail restart: always environment: - - CONNECTION_URI=mongodb://mongo + - CONNECTION_URI=mongodb://db env_file: - .env depends_on: @@ -12,10 +12,7 @@ services: db: image: mongo - container_name: mongodb + container_name: modmail-db restart: always volumes: - - mongodb:/data/db - -volumes: - mongodb: + - ./env/db:/data/db