Move to local storage for prod

This commit is contained in:
Ryan Shepherd 2023-10-17 09:33:15 -04:00
parent a72626b10a
commit d723b74c0c
2 changed files with 12 additions and 15 deletions

View File

@ -1,12 +1,22 @@
version: "3.9"
volumes:
trmstatic:
driver: local
driver_opts:
type: "nfs"
o: "addr=10.0.0.3,nolock,soft,rw"
device: "/mnt/SSDScratch/Docker/trmstatic"
services:
www:
image: dockerm.rymon.net:5000/trmstatic
build: .
ports:
- 10080:80
- 14001:80
environment:
- TZ=America/New_York
volumes:
- ./www:/var/www
- trmstatic:/var/www

View File

@ -1,13 +0,0 @@
#!/bin/bash
docker stop statictrm
docker rm statictrm
docker build -t statictrm .
docker run -d --name=statictrm \
-v $PWD/www:/var/www \
-e TZ=America/New_York \
-p 10080:80 \
--restart=unless-stopped \
statictrm