mirror of
https://github.com/jcwimer/startup-infrastructure
synced 2026-03-24 22:34:42 +00:00
Added support for nfs, removed node versions because node is not needed, added shell code for storage options: digitalocean, gcp, aws, openstack, and ceph
This commit is contained in:
@@ -1,31 +1,22 @@
|
||||
version: '2'
|
||||
services:
|
||||
web:
|
||||
image: gitea/gitea:1.3.2
|
||||
volumes:
|
||||
- ./data:/data
|
||||
ports:
|
||||
- "80:3000"
|
||||
- "2222:22"
|
||||
restart: always
|
||||
# setup options: https://docs.gitea.io/en-us/config-cheat-sheet/
|
||||
# networks:
|
||||
# - db
|
||||
# depends_on:
|
||||
# - db
|
||||
# db:
|
||||
# image: mariadb:10
|
||||
# restart: always
|
||||
# networks:
|
||||
# - db
|
||||
# environment:
|
||||
# - MYSQL_ROOT_PASSWORD=changeme
|
||||
# - MYSQL_DATABASE=gitea
|
||||
# - MYSQL_USER=gitea
|
||||
# - MYSQL_PASSWORD=changeme
|
||||
# volumes:
|
||||
# - db/:/var/lib/mysql
|
||||
#networks:
|
||||
# db:
|
||||
#volumes:
|
||||
# db:
|
||||
version: '2'
|
||||
services:
|
||||
dokuwiki:
|
||||
image: 'bitnami/dokuwiki:latest'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
volumes:
|
||||
- 'dokuwiki_data:/bitnami'
|
||||
volumes:
|
||||
dokuwiki_data:
|
||||
{% if storage_type == 'nfs' %}
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr={{ nfs_address }},soft,nolock,rw"
|
||||
device: ":{{ nfs_root_path }}/dokuwiki"
|
||||
{% elif storage_type == 'local' %}
|
||||
driver: local
|
||||
{% endif %}
|
||||
@@ -1,14 +1,45 @@
|
||||
version: '2'
|
||||
services:
|
||||
dokuwiki:
|
||||
image: 'bitnami/dokuwiki:latest'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
volumes:
|
||||
- 'dokuwiki_data:/bitnami'
|
||||
volumes:
|
||||
dokuwiki_data:
|
||||
driver: local
|
||||
version: '2'
|
||||
services:
|
||||
web:
|
||||
image: gitea/gitea:1.3.2
|
||||
volumes:
|
||||
- gitea_data:/data
|
||||
ports:
|
||||
- "80:3000"
|
||||
- "2222:22"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
gitea_data:
|
||||
{% if storage_type == 'nfs' %}
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr={{ nfs_address }},soft,nolock,rw"
|
||||
device: ":{{ nfs_root_path }}/gitea"
|
||||
{% elif storage_type == 'local' %}
|
||||
driver: local
|
||||
{% endif %}
|
||||
|
||||
|
||||
# setup options: https://docs.gitea.io/en-us/config-cheat-sheet/
|
||||
# networks:
|
||||
# - db
|
||||
# depends_on:
|
||||
# - db
|
||||
# db:
|
||||
# image: mariadb:10
|
||||
# restart: always
|
||||
# networks:
|
||||
# - db
|
||||
# environment:
|
||||
# - MYSQL_ROOT_PASSWORD=changeme
|
||||
# - MYSQL_DATABASE=gitea
|
||||
# - MYSQL_USER=gitea
|
||||
# - MYSQL_PASSWORD=changeme
|
||||
# volumes:
|
||||
# - db/:/var/lib/mysql
|
||||
#networks:
|
||||
# db:
|
||||
#volumes:
|
||||
# db:
|
||||
Reference in New Issue
Block a user