Added restart env

master
Meliurwen 4 years ago
parent a499eeb00f
commit b10ce52cb9
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      .env.example
  2. 6
      docker-compose.yml

@ -15,6 +15,7 @@ DB_PASSWD=passwordhere
GT_IMG=
GT_TAG=
GT_CONTAINER_NAME=
GT_RESTART=
# Database
# If using PostgreSQL is better to use SIGTERM to power off the container which
@ -26,5 +27,6 @@ GT_CONTAINER_NAME=
DB_IMG=
DB_TAG=
DB_CONTAINER_NAME=
GT_RESTART=
DB_STOP_SIG=
DB_STOP_GRC=30s

@ -3,8 +3,8 @@ version: "3.1"
services:
server:
image: ${GT_IMG:-gitea/gitea}:${GT_TAG:-latest}
container_name: ${GT_CONTAINER_NAME}
restart: unless-stopped
container_name: ${GT_CONTAINER_NAME:gitea}
restart: ${GT_RESTART:-unless-stopped}
networks:
- default
- gitea
@ -30,7 +30,7 @@ services:
db:
image: ${DB_IMG:-postgres}:${DB_TAG:-12.4}
container_name: ${DB_CONTAINER_NAME:-gitea-db}
restart: unless-stopped
restart: ${DB_RESTART:-unless-stopped}
stop_signal: ${DB_STOP_SIG:-SIGTERM}
stop_grace_period: ${DB_STOP_GRC:-10s}
environment:

Loading…
Cancel
Save