Last active
March 5, 2020 22:12
-
-
Save WilfredLemus/a827e9cd3f151d9e0147c4dd5ff2bdab to your computer and use it in GitHub Desktop.
Osticket docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
mysql_osticket: | |
container_name: mysql_osticket | |
restart: unless-stopped | |
image: mysql:5.7.22 | |
environment: | |
MYSQL_ROOT_PASSWORD: 123 | |
MYSQL_DATABASE: osticket | |
MYSQL_PASSWORD: 123 | |
MYSQL_USER: osticket | |
volumes: | |
- /var/lib/osticket/mysql/:/var/lib/mysql | |
ports: | |
- 3307:3306 | |
osticket: | |
container_name: osticket | |
restart: unless-stopped | |
image: campbellsoftwaresolutions/osticket | |
depends_on: | |
- mysql_osticket | |
links: | |
- mysql_osticket:mysql | |
environment: | |
INSTALL_SECRET: 123 | |
MYSQL_HOST: mysql | |
MYSQL_PASSWORD: 123 | |
CRON_INTERVAL: 1 | |
image: campbellsoftwaresolutions/osticket | |
volumes: | |
- /var/lib/osticket/nginx/:/var/log/nginx | |
- type: bind | |
source: /var/lib/osticket/data/ | |
target: /data/ | |
ports: | |
- 8080:80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /var/lib/osticket/{data,mysql,nginx} | |
# Run docker-compose outline volumes osticket, stop and copy folder, edit line volumes and run docker-compose. | |
sudo docker cp osticket:/data /var/lib/osticket/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment