Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/systemd/system/docker-compose-opt.service
- [Unit]
- Description=Docker Compose Opt Service
- Requires=docker.service
- After=docker.service
- [Service]
- Type=oneshot
- RemainAfterExit=yes
- WorkingDirectory=/opt
- ExecStart=/usr/local/bin/docker-compose up -d
- ExecStop=/usr/local/bin/docker-compose stop
- TimeoutStartSec=0
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement