fix docker-compose redis connection

This commit is contained in:
710leo 2020-11-10 23:55:25 +08:00
parent a90c746626
commit 1ab6dfceb1
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,5 @@ FROM centos:7
WORKDIR /home/n9e
COPY --from=builder /home/n9e/builder/nightingale/ .
COPY entrpoint.sh .
RUN sed -i 's/127.0.0.1:6379/redis:6379/g' etc/judge.yml
RUN yum install mysql net-tools -y
ENTRYPOINT ./entrpoint.sh
ENTRYPOINT ./entrpoint.sh

View File

@ -1,6 +1,8 @@
#!/bin/bash
sed -i 's/127.0.0.1/mysql/g' etc/mysql.yml
sed -i 's/addr: 127.0.0.1:6379/addr: redis:6379/g' etc/rdb.yml
sed -i 's/addr: 127.0.0.1:6379/addr: redis:6379/g' etc/monapi.yml
sed -i 's/addr: 127.0.0.1:6379/addr: redis:6379/g' etc/judge.yml
mysqlRootPassword=1234