-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
178 lines (162 loc) · 4.47 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: "3.8"
services:
tmv-admin-api:
container_name: tmv-admin-api
image: tmv-admin-api
restart: always
environment:
API_CLIENT: ${API_CLIENT}
API_TOKEN: ${API_TOKEN}
API_TOKEN_EXPIRATION_TIME: ${API_TOKEN_EXPIRATION_TIME}
API_CREATE_ADMIN: ${API_CREATE_ADMIN}
API_LOG: ${API_LOG}
API_PORT: ${API_PORT}
API_SMTP_USER: ${API_SMTP_USER}
API_SMTP_PASS: ${API_SMTP_PASS}
API_SMTP_HOST: ${API_SMTP_HOST}
API_SMTP_PORT: ${API_SMTP_PORT}
#tmv-admin-db-01
DB_USERS_DATABASE: ${DB_USERS_DATABASE}
DB_USERS_USER: ${DB_USERS_USER}
DB_USERS_PASSWORD: ${DB_USERS_PASSWORD}
DB_USERS_HOST: ${DB_USERS_HOST}
#tmv-admin-db-02
DB_DATA_USER: ${DB_DATA_USER}
DB_DATA_PASSWORD: ${DB_DATA_PASSWORD}
DB_DATA_DATABASE: ${DB_DATA_DATABASE}
DB_DATA_HOST: ${DB_DATA_HOST}
TZ: ${DB_DATA_TZ}
build:
context: ./api
dockerfile: Dockerfile
args:
API_PORT: ${API_PORT}
# ports:
# - ${API_PORT}:${API_PORT}
depends_on:
- tmv-admin-db-01
- tmv-admin-db-02
networks:
- tmv-admin
tmv-admin-api-files:
container_name: tmv-admin-api-files
image: tmv-admin-api-files
restart: always
environment:
API_LOG: ${API_FILES_LOG}
API_PORT: ${API_FILES_PORT}
#tmv-admin-api
API_CLIENT: ${API_CLIENT}
API_TOKEN: ${API_TOKEN}
API_TOKEN_EXPIRATION_TIME: ${API_TOKEN_EXPIRATION_TIME}
#tmv-admin-db-01
DB_USERS_DATABASE: ${DB_USERS_DATABASE}
DB_USERS_USER: ${DB_USERS_USER}
DB_USERS_PASSWORD: ${DB_USERS_PASSWORD}
DB_USERS_HOST: ${DB_USERS_HOST}
TZ: ${TZ}
build:
context: ./api-files
dockerfile: Dockerfile
args:
API_PORT: ${API_FILES_PORT}
# ports:
# - ${API_FILES_PORT}:${API_FILES_PORT}
depends_on:
- tmv-admin-db-01
networks:
- tmv-admin
tmv-admin-db-01:
container_name: tmv-admin-db-01
image: mongo:4.4.15
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USERS_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_USERS_PASSWORD}
MONGO_INITDB_DATABASE: ${DB_USERS_DATABASE}
volumes:
- ./db-01:/data/db
# ports:
# - ${DB_USERS_PORT}:27017
networks:
- tmv-admin
tmv-admin-db-02:
container_name: tmv-admin-db-02
restart: always
image: postgres:latest
environment:
POSTGRES_USER: ${DB_DATA_USER}
POSTGRES_PASSWORD: ${DB_DATA_PASSWORD}
POSTGRES_DB: ${DB_DATA_DATABASE}
TZ: ${DB_DATA_TZ}
volumes:
- ./db-02:/var/lib/postgresql/data
# ports:
# - ${DB_USERS_DATA}:5432
networks:
- tmv-admin
tmv-admin-ui:
container_name: tmv-admin-ui
image: tmv-admin-ui
restart: always
environment:
REACT_APP_UI_PORT: ${REACT_APP_UI_PORT}
REACT_APP_API_HOST: ${REACT_APP_API_HOST}
build:
context: ./ui
dockerfile: Dockerfile
args:
REACT_APP_UI_PORT: ${REACT_APP_UI_PORT}
REACT_APP_API_HOST: ${REACT_APP_API_HOST}
depends_on:
- tmv-admin-api
# ports:
# - ${REACT_APP_UI_PORT}:${REACT_APP_UI_PORT}
networks:
- tmv-admin
tmv-admin-mongoexpress:
container_name: tmv-admin-mongoexpress
image: mongo-express
restart: always
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${DB_MONGOEXPRESS_USER}
ME_CONFIG_BASICAUTH_PASSWORD: ${DB_MONGOEXPRESS_PASSWORD}
#tmv-admin-db-02
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_USERS_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_USERS_PASSWORD}
ME_CONFIG_MONGODB_URL: ${DB_MONGOEXPRESS_URL}
depends_on:
- tmv-admin-db-01
# ports:
# - ${DB_MONGOEXPRESS_PORT}:8081
networks:
- tmv-admin
tmv-admin-pgadmin:
container_name: tmv-admin-pgadmin
restart: always
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PG_ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PG_ADMIN_PASSWORD}
depends_on:
- tmv-admin-db-02
# ports:
# - ${DB_PGADMIN_PORT}:80
networks:
- tmv-admin
tmv-admin-duckdns:
container_name: tmv-admin-duckdns
restart: always
image: ghcr.io/linuxserver/duckdns
environment:
PUID: ${DDNS_PUID}
PGID: ${DDNS_PGID}
SUBDOMAINS: ${DDNS_SUBDOMAINS}
DUCKDNS_TOKEN: ${DDNS_TOKEN}
LOG_FILE: ${DDNS_LOGFILE}
TZ: ${DB_DATA_TZ}
networks:
- tmv-admin
networks:
tmv-admin:
name: tmv-admin