Docker project used to deploy BDMER3 with nginx and couchdb => projet déplacé gitlab in2p3 30/102019
- docker
- docker-compose
- Clone git repository
git clone [email protected]:sylviefiat/bdmer_deploy.git
- Run docker compose in order to start databse and app:
docker-compose up
- Go to
cd /usr/lib/systemd/system/
- Create start file
vi bdmer.service
[Unit]
Description=bdmer
Requires=docker.service
After=docker.service
[Service]
User=root
ExecStartPre=/usr/local/bin/docker-compose -f /opt/docker/bdmer_deploy/docker-compose.yml down
ExecStart=/usr/local/bin/docker-compose -f /opt/docker/bdmer_deploy/docker-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f /opt/docker/bdmer_deploy/docker-compose.yml stop
[Install]
WantedBy=multi-user.target
- enable on start
systemctl enable bdmer