-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-production.yml
More file actions
145 lines (136 loc) · 2.92 KB
/
docker-compose-production.yml
File metadata and controls
145 lines (136 loc) · 2.92 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
version: '3.1'
services:
master:
container_name: master-db
image: postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
ports:
- 5432:5432
volumes:
- /root/bmstu/bmstu-ppo-web-test/data:/var/lib/postgresql/data
slave:
container_name: slave-db
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: slave
ports:
- 5431:5432
volumes:
- /root/bmstu/bmstu-ppo-web-test/slave:/var/lib/postgresql/data
links:
- "master:database"
depends_on:
- master
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
links:
- "master:database"
depends_on:
- master
nginx:
image: ymuski/nginx-quic
ports:
- "3000:3000"
- "80:80"
- "443:443"
- "81:81"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/hosts:/etc/hosts
- ./dist:/public
- ./nginx/certs:/etc/nginx/certs
# - ./mirror:/mirror
links:
- "app1:app1"
- "pgadmin:pgadmin"
depends_on:
- app1
- pgadmin
app1:
image: spectralone/ppo:latest
volumes:
- ./:/app
working_dir: /app
environment:
- PG_USER=admin
- PG_HOST=master
- PG_DB=admin
- PG_PASS=admin
- PG_PORT=5432
- SPORT=3000
- CPORT=81
links:
- "master:database"
- "slave:database"
app2:
image: spectralone/ppo:latest
volumes:
- ./:/app
working_dir: /app
environment:
- PG_USER=admin
- PG_HOST=slave
- PG_DB=admin
- PG_PASS=admin
- PG_PORT=5432
- SPORT=3000
- CPORT=81
links:
- "master:database"
- "slave:database"
app3:
image: spectralone/ppo:latest
volumes:
- ./:/app
working_dir: /app
environment:
- PG_USER=admin
- PG_HOST=slave
- PG_DB=admin
- PG_PASS=admin
- PG_PORT=5432
- SPORT=3000
- CPORT=81
links:
- "master:database"
- "slave:database"
# mirror:
# build:
# context: .
# # args:
# # - REACT_APP_API=https://team-gen.com/mirror1/api/v1
# # - REACT_APP_VERSION=Mirror
# dockerfile: Dockerfile_mirror
# volumes:
# - ./:/mirror
# working_dir: /mirror
# environment:
# - REACT_APP_API=https://team-gen.com/mirror1/api/v1
# - BUILD=mirror
# - REACT_APP_VERSION=Mirror
# - PG_USER=admin
# - PG_HOST=slave
# - PG_DB=admin
# - PG_PASS=admin
# - PG_PORT=5432
# - SPORT=3002
# - CPORT=81
# links:
# - "slave:database"
# curl -k -X GET https://nginx/api/v1/players
http3_client:
image: ymuski/curl-http3
links:
- "nginx:nginx"
command: ["/bin/bash"]
tty: true