commit 94a5b3feec7f78836af65c3d1e91e99b927ce04e Author: bmen Date: Sat Jun 6 18:33:13 2020 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/backup.sh b/backup.sh new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml new file mode 100644 index 0000000..b04204e --- /dev/null +++ b/docker-compose-prod.yml @@ -0,0 +1,34 @@ +version: "2" + +services: + server: + image: gitea/gitea:1.11.6 + environment: + - USER_UID=1000 + - USER_GID=1000 + - DB_TYPE=mysql + - DB_HOST=db:3306 + - DB_NAME=${DB_NAME} + - DB_USER=${DB_USER} + - DB_PASSWD=${DB_PASSWD} + restart: always + volumes: + - /opt/docker/gitea/app:/data + ports: + - "3000:3000" + - "222:22" + container_name: openwill-gitea + depends_on: + - db + + db: + image: mariadb:10.5.3 + restart: always + environment: + - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} + - MYSQL_USER=${DB_USER} + - MYSQL_PASSWORD=${DB_PASSWD} + - MYSQL_DATABASE=${DB_NAME} + container_name: openwill-gitea-db + volumes: + - /opt/docker/gitea/mariadb:/var/lib/mysql \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..84d3467 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,34 @@ +version: "2" + +services: + server: + image: gitea/gitea:1.11.6 + environment: + - USER_UID=1000 + - USER_GID=1000 + - DB_TYPE=mysql + - DB_HOST=db:3306 + - DB_NAME=gitea + - DB_USER=gitea + - DB_PASSWD=gitea + restart: always + volumes: + - ./app:/data + ports: + - "3000:3000" + - "222:22" + container_name: openwill-gitea + depends_on: + - db + + db: + image: mariadb:10.5.3 + restart: always + environment: + - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_USER=gitea + - MYSQL_PASSWORD=gitea + - MYSQL_DATABASE=gitea + container_name: openwill-gitea-db + volumes: + - ./mariadb:/var/lib/mysql \ No newline at end of file