-
Notifications
You must be signed in to change notification settings - Fork 11
Running with Docker
We have tested Docker on Ubuntu 18.04 server.
S-TIP Docker image includes RS, GV, and SNS.
docker-compose pull a seamlesstip/stip:latest
image on DockerHub. (see docker-compose.yml for details).
$ git clone https://github.com/s-tip/stip-common.git
$ cd stip-common/docker
$ sudo chown -R 1000:1000 data/rs_community
$ docker-compose up
If you are using macOS/Windows, There is a problem that docker volumes don't work with MongoDB. Comment out "volumes" line in docker-compose.yml.
If you are using MacOS with Apple Silicon, please use docker-compose_arm64.yml
instaed of docker-compose.yml
.
$ docker-compose -f docker-compse_arm64.yml up
At first, you must access RS with the following URL and change the default password.
- RS
https://[yourIPaddress]:10001
username: admin
password: admin
Then you will be able to access GV/SNS with the following URL.
- GV
https://[yourIPaddress]:10000
- SNS
https://[yourIPaddress]
If you see the "Internal Server Error" page after login, please restart the docker-compose command.
-
"Internal Server Error 500"
On the specific environment, S-TIP SNS causes an error with "Internal Server Error 500" when the user creates a new post.
This problem is caused by a UserID and GroupID are 1000 (uid:1000/gid:1000), currently the Docker container works with the IDs.
We will fix this issue in future release.
To avoid this error, execute the following command before docker-compose command.
$ sudo chown -R 1000:1000 data/rs_community
-
docker-compose on WSL (Windows Subsystem for Linux)
If you cannot start
docker-compose up
, please comment out the mongo volume option in adocker-compose.yml
.
mongo:
image: mongo:4.4
restart: always
ports:
- "27017:27017"
expose:
- "27017"
# volumes:
# # mount dir for DB persistence
# - ./data/mongo_data:/data/db
It may be a mongo container issue on windows.
- Unsupported config option
platform
Please upgrade your docker-compose
module from here
- Ubuntu 22.04
If you fail to run setup_rs.sh
under Ubuntu 22.04, please install libssl
before apt install -y mongodb-org
like below.
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
dpkg -i ./libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
apt update
apt install -y mongodb-org
See the Tutorial.