-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-old2.yml
67 lines (66 loc) · 1.93 KB
/
docker-compose-old2.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
version: "3.1"
services: # Tüm Docker container'larımız 'services' altında olacak
proxy:
image: "${CI_REGISTRY_IMAGE-local}/proxy:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./nginx
ports:
- "3300:80"
links:
- first-server
- second-server
restart: always
database: # Mongo server için tanımlama
image: "${CI_REGISTRY_IMAGE-local}/database:${CI_COMMIT_SHORT_SHA-local}"
ports: # port yönlendirmeleri
- "9000:27017"
restart: always
database-seed:
image: "${CI_REGISTRY_IMAGE-local}/database-seed:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./database-seed
links:
- database
rabbitmq: # Rabbit Mq server için tanımlama
image: "${CI_REGISTRY_IMAGE-local}/rabbitmq:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./rabbitmq
ports: # port yönlendirmeleri
- "9003:15672"
restart: always
queue: # Queue server için tanımlama
image: "${CI_REGISTRY_IMAGE-local}/queue:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./queue
ports: # port yönlendirmeleri
- "5000:3000"
links:
- rabbitmq
restart: always
first-server: # İlk Express server için tanımlama
image: "${CI_REGISTRY_IMAGE-local}/first-server:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./server
ports: # port yönlendirmeleri
- "3500:3000"
links:
- database
- queue
restart: always
second-server: # İkinci Express server için tanımlama
image: "${CI_REGISTRY_IMAGE-local}/second-server:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./server
ports: # port yönlendirmeleri
- "3400:3000"
restart: always
client: # react client için tanımlama
image: "${CI_REGISTRY_IMAGE-local}/client:${CI_COMMIT_SHORT_SHA-local}"
build:
context: ./client
ports: # port yönlendirmeleri
- "3600:3000"
links:
- proxy
- queue
restart: always