20 lines
561 B
YAML
20 lines
561 B
YAML
services:
|
|
server:
|
|
container_name: tingz-server
|
|
env_file: .env
|
|
build:
|
|
context: .
|
|
args:
|
|
UID: ${UID}
|
|
GID: ${GID}
|
|
# for the volumes below, ensure the server user has write access
|
|
# "server user" is the user that UID and GID's are passed with env variables
|
|
volumes:
|
|
- ./volumes/data:/data # SQLite DB
|
|
- ./volumes/docs:/var/www/docs # published files
|
|
- ./volumes/deploys:/var/www/deploys # releases
|
|
ports:
|
|
- "${HOST}:${PORT}:8080"
|
|
user: "${UID}:${GID}"
|
|
restart: unless-stopped
|