-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.12 KB
/
docker-compose.yml
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
version: '3.7'
# Windows doesn't support file-level mounting in Docker, so we're mounting a /config folder for compatibility
services:
client:
container_name: tagging-client
build:
context: ./
dockerfile: ./client/Dockerfile
depends_on:
- redis
- server
volumes:
- ${WORKINGFOLDER}:/working
- ${WORKINGARTFOLDER}:/workingart
- ./config/:/app/config/
networks:
- app-network
server:
container_name: tagging-server
image: server
build:
context: ./
dockerfile: ./server/Dockerfile
depends_on:
- redis
volumes:
- ${WORKINGFOLDER}:/working
- ${WORKINGARTFOLDER}:/workingart
- ./config/:/app/config/
networks:
- app-network
redis:
container_name: redis
image: redis:alpine
networks:
- app-network
mongodb:
container_name: mongodb
image: mongo
volumes:
- mongodata:/data/db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mongodata:
# mount folders to be processed into both containers based on .env file