You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
56 lines
1.4 KiB
version: "3.7" |
|
services: |
|
mongodb: |
|
image: mongo:latest |
|
container_name: mongodb |
|
volumes: |
|
- ./mongo_data:/data/db |
|
environment: |
|
- MONGO_INITDB_DATABASE=todos |
|
- MONGO_INITDB_ROOT_USERNAME=admin |
|
- MONGO_INITDB_ROOT_PASSWORD=admin |
|
ports: |
|
- "27017:27017" |
|
|
|
mongo-express: |
|
container_name: mongo-express |
|
depends_on: |
|
- mongodb |
|
image: mongo-express:latest |
|
environment: |
|
- ME_CONFIG_MONGODB_SERVER=mongodb |
|
- ME_CONFIG_MONGODB_PORT=27017 |
|
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin |
|
- ME_CONFIG_MONGODB_ADMINPASSWORD=admin |
|
- ME_CONFIG_BASICAUTH_USERNAME=express |
|
- ME_CONFIG_BASICAUTH_PASSWORD=express |
|
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true |
|
- ME_CONFIG_OPTIONS_EDITORTHEME=default |
|
ports: |
|
- "8081:8081" |
|
|
|
node: |
|
depends_on: |
|
- mongodb |
|
image: yutsuo/mern-todo-backend |
|
container_name: mern-todo-backend |
|
build: |
|
context: . |
|
args: |
|
- HTTP_PROXY=http://192.168.128.1:3128 |
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
|
- http_proxy=http://192.168.128.1:3128 |
|
- https_proxy=http://192.168.128.1:3128 |
|
ports: |
|
- "4000:4000" |
|
volumes: |
|
- .:/usr/src/app |
|
command: |
|
["npm", "run", "watch"] |
|
|
|
networks: |
|
default: |
|
ipam: |
|
driver: default |
|
config: |
|
- subnet: 172.17.1.0/24
|
|
|