Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
161 lines (161 loc) · 3.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
161 lines (161 loc) · 3.74 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
networks:
devops:
driver: bridge
volumes:
PGDATA:
redis-data:
services:
movie-search:
# image: codesenju/movie-search.api.local:latest
build: ./movie-search
container_name: movie-search
networks:
- devops
ports:
- 3000:3000
profiles:
- all
fastapi:
build: ./FastApi
container_name: fastapi
networks:
- devops
environment:
DB_HOST: pgmoviedb
DB_NAME: movie
DB_PASSWORD: 12345
DB_USERNAME: postgres
DB_PORT: 5432
ports:
- 8000:8000
profiles:
- all
- quick-setup
pgmoviedb:
# image: codesenju/pgmoviedb.api.local:latest
build: ./postgres
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_DB: movie
POSTGRES_PASSWORD: 12345
volumes:
- PGDATA:/var/lib/postgresql/data
networks:
- devops
ports:
- 5432:5432
profiles:
- all
- quick-setup
nodeapi:
# image: codesenju/nodeapi.api.local:latest
build: ./nodeapi
container_name: nodeapi
environment:
DB_HOST: pgmoviedb
DB_PASSWORD: 12345
DB_NAME: movie
DB_PORT: 5432
DB_USERNAME: postgres
restart: unless-stopped
depends_on:
- pgmoviedb
networks:
- devops
profiles:
- all
ports:
- 3002:3000
index:
# image: codesenju/index.api.local:v1
build: ./index.api.local
container_name: index
restart: unless-stopped
environment:
MOVIES_URL: 'http://nodeapi:3000/api/v1/movies/'
TVSERIES_URL: 'http://nodeapi:3000/api/v1/tvseries/'
TVMINISERIES_URL: 'http://nodeapi:3000/api/v1/tvminiseries/'
INDEX_BACKEND_URL: 'http://index-backend:5000/'
networks:
- devops
profiles:
- all
ports:
- 81:5000
indexv2:
# image: codesenju/index.api.local:v2
build: ./indexv2.api.local
container_name: indexv2
restart: unless-stopped
environment:
MOVIES_URL: 'http://nodeapi:3000/api/v1/movies/'
TVSERIES_URL: 'http://nodeapi:3000/api/v1/tvseries/'
TVMINISERIES_URL: 'http://nodeapi:3000/api/v1/tvminiseries/'
INDEX_BACKEND_URL: 'http://index-backend:5000/'
networks:
- devops
profiles:
- all
ports:
- 82:5000
indexv3:
# image: codesenju/index.api.local:v3
build: ./indexv3.api.local
container_name: indexv3
restart: unless-stopped
environment:
MOVIES_URL: 'http://nodeapi:3000/api/v1/movies/'
TVSERIES_URL: 'http://nodeapi:3000/api/v1/tvseries/'
TVMINISERIES_URL: 'http://nodeapi:3000/api/v1/tvminiseries/'
INDEX_BACKEND_URL: 'http://index-backend:5000/'
networks:
- devops
profiles:
- all
ports:
- 83:5000
frontend:
# image: codesenju/frontend.api.local:latest
build: ./frontend.api.local
container_name: frontend
restart: unless-stopped
environment:
INDEX_URL: 'http://indexv3:5000/'
networks:
- devops
ports:
- 8081:5000
profiles:
- all
index-backend:
# image: codesenju/index-backend.api.local:latest
build: ./index-backend.api.local
container_name: index-backend
restart: unless-stopped
environment:
TVMINISERIES_FIFA_URL: 'http://nodeapi:3000/api/v1/tvminiseries/2022 Fifa World Cup'
ENDGAME_URL: 'http://nodeapi:3000/api/v1/movies/Avengers: Endgame'
networks:
- devops
profiles:
- all
ports:
- 84:5000
# redis:
# image: redis:7
# container_name: redis
# restart: unless-stopped
# command:
# - redis-server
# - --save
# - "60"
# - "1"
# - --loglevel
# - warning
# networks:
# - devops
# volumes:
# - redis-data:/data
# ports:
# - 6379:6379