-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yml
108 lines (100 loc) · 2.11 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
platform:
build: ./platform
ports:
- "3000:3000"
env_file:
- ./.env.docker
networks:
- app_network
depends_on:
- backend
backend:
build:
context: ./
dockerfile: ./backend/Dockerfile
ports:
- "8000:8000"
env_file:
- ./.env.docker
networks:
- app_network
depends_on:
- extractor
- mongodb
# This is an example on how to run local Temporal server
# Refer to this: https://github.com/temporalio/docker-compose
# https://hub.docker.com/r/temporalio/auto-setup
# postgresql:
# container_name: temporal-postgresql
# environment:
# POSTGRES_PASSWORD: temporal
# POSTGRES_USER: temporal
# image: postgres:12
# networks:
# - app_network
# ports:
# - 5432:5432
# volumes:
# - /var/lib/postgresql/data
# temporal:
# container_name: temporal
# depends_on:
# - postgresql
# environment:
# - DB=postgres12
# - DB_PORT=5432
# - POSTGRES_USER=temporal
# - POSTGRES_PWD=temporal
# - POSTGRES_SEEDS=postgresql
# - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/temporal-dynamic-config.yaml
# - DEFAULT_NAMESPACE=default
# image: temporalio/auto-setup
# networks:
# - app_network
# ports:
# - "7233:7233" #server
# - "7999:7999" #UI
# volumes:
# - ./:/etc/temporal/config/dynamicconfig
extractor:
build:
context: ./
dockerfile: ./extractor/Dockerfile
ports:
- "8080:8080"
env_file:
- ./.env.docker
networks:
- app_network
depends_on:
- mongodb
- temporal
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- app_network
ai-hub:
build:
context: ./
dockerfile: ./ai-hub/Dockerfile
ports:
- "8081:8081"
env_file:
- ./.env.docker
networks:
- app_network
depends_on:
- temporal
- backend
- extractor
- mongodb
networks:
app_network:
driver: bridge
volumes:
mongodb_data: