version: "3.8" services: api: image: medihome-dictionary-be:v1 build: ./app ports: - 80:80 environment: - DB_URL=mongodb://db/mdDB - URL_SWAGGER=True volumes: - ./app:/app restart: always env_file: - .env db: image: mongo ports: - 27017:27017 volumes: - ./taskdb:/data/db restart: always # # db1: # # image: registry.vegastar.vn/hoanganh.c4i/mongodb_md # # ports: # # - 27018:27017 # # volumes: # # - ./data/db:/data/db # # restart: always # volumes: # taskdb: # version: "3.3" # services: # api: # image: registry.vegastar.vn/hoanganh.c4i/medihome-dictionary-be # # build: ./app # ports: # - 80:80 # environment: # - DB_URL=mongodb://db/mdDB # volumes: # - ./images:/app/post/images # restart: always # env_file: # - .env # db: # image: registry.vegastar.vn/hoanganh.c4i/mongodb_md # ports: # - 27017:27017 # volumes: # - ./data/db:/data/db # restart: always