Files
medihome-dictionary-be/docker-compose.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2021-07-19 23:02:31 +03:00
version: "3.8"
2021-07-21 08:05:29 +03:00
2021-07-19 23:02:31 +03:00
services:
api:
2022-08-15 10:53:27 +07:00
image: medihome-dictionary-be:v1
2021-07-21 12:12:58 +03:00
build: ./app
2021-07-19 23:02:31 +03:00
ports:
2021-07-21 08:05:29 +03:00
- 80:80
environment:
2022-08-19 08:38:43 +07:00
- DB_URL=mongodb://db/mdDB
- URL_SWAGGER=True
2021-07-21 08:05:29 +03:00
volumes:
2021-07-21 12:12:58 +03:00
- ./app:/app
2022-07-26 13:46:19 +07:00
restart: always
2022-08-15 10:53:27 +07:00
env_file:
- .env
2022-07-26 13:46:19 +07:00
2021-07-21 08:05:29 +03:00
db:
image: mongo
ports:
- 27017:27017
volumes:
2022-08-19 08:38:43 +07:00
- ./taskdb:/data/db
2022-08-04 14:48:50 +07:00
restart: always
2022-08-19 08:38:43 +07:00
# # 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