-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (59 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
67 lines (59 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.4'
networks:
chelhack-net:
driver: bridge
volumes:
dbdata:
images:
driver: local
driver_opts:
type: none
device: ${VOLUME_PATH-/var}/images
o: bind
services:
crawler:
container_name: chelhack_crawler
image: ${DOCKER_REGISTRY-}crawler
environment:
- ConnectionStrings__GoodsDatabase=mongodb://chelhack:chelhackmegapass2019@mongo:27017/eshop
build:
context: .
dockerfile: Crawler/Dockerfile
volumes:
- images:/app/images
networks:
- chelhack-net
chelhackweb:
container_name: chelhack_web
image: ${DOCKER_REGISTRY-}chelhackweb
build:
context: .
dockerfile: ChelHackWeb/Dockerfile
volumes:
- images:/app/wwwroot/images:ro
networks:
- chelhack-net
chalhackapi:
container_name: chelhack_api
image: ${DOCKER_REGISTRY-}chelhackapi
environment:
- ConnectionStrings__GoodsDatabase=mongodb://chelhack:chelhackmegapass2019@mongo:27017/eshop
build:
context: .
dockerfile: ChelHackApi/Dockerfile
networks:
- chelhack-net
mongo:
image: mongo:4.0.13-xenial
restart: always
environment:
MONGO_INITDB_DATABASE: eshop
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: chelhackrootpass2019
volumes:
- dbdata:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/init.js
ports:
- "27017:27017"
networks:
- chelhack-net