43 lines
923 B
YAML
43 lines
923 B
YAML
#version: '3.8'
|
|
services:
|
|
sws4zola:
|
|
restart: unless-stopped
|
|
# restart_policy:
|
|
# condition: on-failure
|
|
# delay: 6s
|
|
# max_attempts: 4
|
|
# window: 120s
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8970:8970"
|
|
secrets:
|
|
- id_ed25519
|
|
- id_ed25519.pub
|
|
env_file:
|
|
- .env
|
|
# - .env.production
|
|
# environment:
|
|
# - GITPROJECTNAME=serinty-website
|
|
# - GITPROJECTUSER=Serinty
|
|
# - GITSERVER=gogs.serinty.net
|
|
# - GITSERVERPORT=22104
|
|
# - GITUSER=gogs
|
|
# - GITPASSWD=gogspw
|
|
# - LOCALUSER=swsuser
|
|
# - LOCALGROUP=swsgroup
|
|
# - SWSPORT=8970
|
|
# - GITTHEMENAME=serinty-zola-theme
|
|
# - THEME_NAME=serinty-theme
|
|
# - IDLE_TIME=86400
|
|
extra_hosts:
|
|
gogs.serinty.local: 192.168.77.104
|
|
secrets:
|
|
id_ed25519:
|
|
file: ~/.ssh/id_ed25519
|
|
id_ed25519.pub:
|
|
file: ~/.ssh/id_ed25519.pub
|
|
|
|
|