Skip to content

Commit

Permalink
docker compose dev
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed Mar 7, 2024
1 parent 7008b85 commit b7dd70b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docker-compose_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

services:
mongo:
image: mongo
restart: always
volumes:
- intranet_db:/data/db
# - /home/roman/docker_test/db:/data/db
# - /home/roman/Dokumenty/dump_mongodb_20221111/USTintranet:/data/dump
ports:
- 27017:27017
networks:
- internal
#environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example

intranet:
build: .
#depends_on:
# - mongo
volumes:
- intranet_data:/data
# - /home/roman/docker_test/intranet:/data/
ports:
- 8888:8888
networks:
- internal
- external

networks:
internal:
driver: bridge
external:
driver: bridge

volumes:
intranet_data:
intranet_db:
driver: local
#device: docker_volumes

0 comments on commit b7dd70b

Please sign in to comment.