-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-linkarium.sh
executable file
·33 lines (30 loc) · 1.29 KB
/
start-linkarium.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
## start-linkarium.sh ##
# This script starts Linkarium container for DEV purposes
# for Prod use the following command to start Linkarium
# docker run -it --restart=unless-stopped -d \
# -p 10080:80 \
# -p 10443:443 \
# --name Linkarium \
# -v ~/proggy/Linkarium/docker-volume/web:/usr/share/nginx/html \
# -v ~/proggy/Linkarium/docker-volume/config/linkarium.conf:/etc/nginx/conf.d/linkarium.conf:ro \
# -v ~/proggy/Linkarium/docker-volume/ssl:/etc/nginx/certs/:ro
# nginx:1.25.5
# with SSL certificates installed and configured;
# docker run -it --rm -d \
# -p 10080:80 \
# -p 10443:443 \
# --name Linkarium \
# -v ~/proggy/Linkarium/docker-volume/web:/usr/share/nginx/html \
# -v ~/proggy/Linkarium/docker-volume/config/linkarium.conf:/etc/nginx/conf.d/linkarium.conf:ro \
# -v ~/proggy/Linkarium/docker-volume/ssl:/etc/nginx/certs/:ro \
# nginx:1.25.5
docker stop Linkarium
docker rm Linkarium
# not using --rm option to start the container so that we can check the container logs after termination
docker run -it -d \
-p 80:80 \
--name Linkarium \
-v ~/proggy/Linkarium/docker-volume/web:/usr/share/nginx/html \
-v ~/proggy/Linkarium/docker-volume/config/linkarium.conf:/etc/nginx/conf.d/linkarium.conf:ro \
nginx:1.25.5