-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
140 lines (130 loc) · 3.58 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
version: "3.8"
services:
org-project-api:
container_name: org-project-api
image: org-project-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}
#org-project-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}
#org-project-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:
- org-project-db-01
- org-project-db-02
networks:
- org-project
org-project-db-01:
container_name: org-project-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:
- org-project
org-project-db-02:
container_name: org-project-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:
- org-project
org-project-ui:
container_name: org-project-ui
image: org-project-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:
- org-project-api
# ports:
# - ${REACT_APP_UI_PORT}:${REACT_APP_UI_PORT}
networks:
- org-project
org-project-mongoexpress:
container_name: org-project-mongoexpress
image: mongo-express
restart: always
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${DB_MONGOEXPRESS_USER}
ME_CONFIG_BASICAUTH_PASSWORD: ${DB_MONGOEXPRESS_PASSWORD}
#org-project-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:
- org-project-db-01
# ports:
# - ${DB_MONGOEXPRESS_PORT}:8081
networks:
- org-project
org-project-pgadmin:
container_name: org-project-pgadmin
restart: always
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PG_ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PG_ADMIN_PASSWORD}
depends_on:
- org-project-db-02
# ports:
# - ${DB_PGADMIN_PORT}:80
networks:
- org-project
org-project-duckdns:
container_name: org-project-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:
- org-project
networks:
org-project:
name: org-project