diff --git a/docker-compose.yml b/docker-compose.yml index 2458bcf..fda5ed8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,18 +3,15 @@ version: '3.4' services: sauce: image: sauce-img - init: true build: context: . dockerfile: ./Dockerfile environment: NODE_ENV: production - MONGO_URI: "mongodb://mongodb:27017/sauce?retryWrites=true&w=majority" + MONGO_URI: "mongodb://sauce-mongodb:27017/sauce?retryWrites=true&w=majority" MAILMAN_URL: "http://lists.sccs.swarthmore.edu:8001/3.1" PORT: 7567 restart: always - ports: - - 127.0.0.1:7567:7567 volumes: - ./_posts:/sauce-app/_posts - ./_docs:/sauce-app/_docs @@ -22,8 +19,10 @@ services: - "host.docker.internal:host-gateway" depends_on: - "mongodb" + mongodb: image: mongo:5.0.5 restart: always + hostname: sauce-mongodb volumes: - './mongodata:/data/db'