Skip to content

Commit

Permalink
meta: adjust for swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
makinbacon21 committed Mar 21, 2024
1 parent 847b7fe commit 1fdb72f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,26 @@ 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
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- "mongodb"

mongodb:
image: mongo:5.0.5
restart: always
hostname: sauce-mongodb
volumes:
- './mongodata:/data/db'

0 comments on commit 1fdb72f

Please sign in to comment.