forked from erichung9060/CMS_Online_Judge
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.empty.yml
More file actions
41 lines (36 loc) · 1.01 KB
/
docker-compose.empty.yml
File metadata and controls
41 lines (36 loc) · 1.01 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
version: "3.3"
services:
db:
container_name: db
image: postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
TZ: Asia/Taipei
volumes:
- "/cms_docker_postgresql_data:/var/lib/postgresql/data"
cms:
container_name: cms
build: .
depends_on:
- "db"
environment:
CMS_CONFIG: /usr/local/etc/cms-testdb.conf
TZ: Asia/Taipei
volumes:
- "./codecov:/home/cmsuser/cms/codecov"
ports:
- 8888:8888
- 8889:8889
- 8890:8890
privileged: true
command: >
wait-for-it db:5432 -- bash -c '
createdb --host=db --username=postgres cmsdb ;
createdb --host=db --username=postgres cmsdbfortesting ;
cmsInitDB ;
sudo chown cmsuser:cmsuser ./codecov ;
sudo sed -i "s/8e045a51e4b102ea803c06f92841a1fb/`python3 -c "from cmscommon import crypto; print(crypto.get_hex_random_key())"`/g" /usr/local/etc/cms.conf;
sudo cmsAdminWebServer ;
'
# sudo cmsRankingWebServer &
# 補在第36行