This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
qoverflow/docker-compose.yml
2022-12-11 22:07:56 -06:00

56 lines
1,011 B
YAML

version: '3.8'
services:
client:
restart: unless-stopped
build:
context: ./client
ports:
- 3000:3000
volumes:
- ./client:/app
- client-node:/app/node_modules
networks:
- qOverflow
env_file: ./client/.env
environment:
WATCHPACK_POLLING: true
depends_on:
- server
server:
restart: unless-stopped
build:
context: ./server
ports:
- 3001:3001
volumes:
- ./server:/app
- server-node:/app/node_modules
networks:
- qOverflow
env_file: ./server/.env
environment:
DB_CONN_STRING: 'mongodb://mongodb:27017'
CHOKIDAR_USEPOLLING: true
depends_on:
- mongodb
mongodb:
restart: unless-stopped
image: mongo:5
ports:
- 27017:27017
volumes:
- data:/data/db
- db-config:/data/configdb
networks:
- qOverflow
logging:
driver: none
volumes:
data:
db-config:
client-node:
server-node:
networks:
qOverflow: {}