Newer
Older
api-gateway:
restart: always
image: nginx:latest
container_name: api-gateway
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "8080:80"
dockerfile: Dockerfile
restart: unless-stopped
- MONGO_URI=mongodb://feed-mongo:27017/
- JWT_PRIVATE_KEY=yB/uX5KdyjHN9P34IE49HxAcrlQ4gfvpVJEzGbo5E/I=
- FRIEND_SERVICE_URI=http://friend-service:9000/
- ENABLE_QUESTION_DB_SEEDING=true
- JWT_PRIVATE_KEY=yB/uX5KdyjHN9P34IE49HxAcrlQ4gfvpVJEzGbo5E/I=
- ENABLE_USER_DB_SEEDING=true
dockerfile: Dockerfile
restart: unless-stopped
ports:
- MONGO_HOST=friend-mongo
- MONGO_PORT=27017
- MONGO_DBNAME=friends
- JWT_PRIVATE_KEY=yB/uX5KdyjHN9P34IE49HxAcrlQ4gfvpVJEzGbo5E/I=
comment-service:
build:
context: "./backend-services/comment-service-2"
dockerfile: Dockerfile
restart: unless-stopped
ports:
environment:
- MONGO_HOST=comment-mongo
- MONGO_PORT=27017
- MONGO_DBNAME=comments
- JWT_PRIVATE_KEY=yB/uX5KdyjHN9P34IE49HxAcrlQ4gfvpVJEzGbo5E/I=
frontend-service:
build:
context: "./daily-thought-frontend"
dockerfile: Dockerfile
restart: unless-stopped
ports:
volumes:
- ./daily-thought-frontend:/frontend-service/app
- /frontend-service/app/node_modules
- /frontend-service/app/.next
- NEXT_PUBLIC_FEED_SERVICE_URL=/api/feed-service/
- NEXT_PUBLIC_USER_SERVICE_URL=/api/user-service/
- NEXT_PUBLIC_FRIEND_SERVICE_URL=/api/friend-service/
- NEXT_PUBLIC_COMMENT_SERVICE_URL=/api/comment-service/
image: mongo
container_name: feed-mongo
ports:
- "27017:27017"
image: mongo
container_name: friend-mongo
ports:
- "27019:27017"
comment-mongo:
image: mongo
container_name: comment-mongo
ports:
- "27020:27017"