-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
74 lines (67 loc) · 1.65 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.7'
services:
mongodb:
image: mongo:latest
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
networks:
- backend
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.8-management-alpine
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
ports:
# AMQP protocol port
- '5672:5672'
# HTTP management UI
- '15672:15672'
networks:
- backend
web-server:
build:
context: .
dockerfile: ./web-server/Dockerfile
image: web-server-img
container_name: web-server
depends_on:
- rabbitmq
- mongodb
environment:
APP_PORT: 5000
volumes:
# Host directory : Container directory
- ./web-server:/web-server
ports:
- "5000:5000"
networks:
- backend
command: python3 main.py --configip configs/docker_in.json
sfm-worker:
build:
context: .
dockerfile: ./colmap/Dockerfile
image: sfm-worker-img
container_name: sfm-worker
depends_on:
- rabbitmq
volumes:
- ./colmap:/colmap
ports:
- 5100:5100
networks:
- backend
command: python3.10 main.py --config=configs/default.txt
networks:
backend:
name: backend-network
driver: bridge
volumes:
mongodb_data_container: