container: support custom built images, mariadb, bind mounts, custom user
This commit is contained in:
@@ -27,13 +27,23 @@ docker_vhost_domains:
|
||||
# Other optional variables
|
||||
|
||||
```
|
||||
docker_database: postgres # Database to set up in a separate container, supports postgres and mongo
|
||||
database_passwords: # Needed for postgres
|
||||
docker_service_suffix: production # For running multiple instances of the same service
|
||||
|
||||
docker_host_user: true # Creates a user on the host and makes the docker container use the same uid/gid. Bind mount volume directories will be owned by this user
|
||||
|
||||
docker_database: postgres # Database to set up in a separate container, supports postgres, mariadb and mongo
|
||||
database_passwords: # Needed for postgres and mariadb
|
||||
gitea: secret
|
||||
|
||||
docker_additional_services:
|
||||
- memcached
|
||||
|
||||
docker_volumes:
|
||||
- gitea_data:/data
|
||||
- /var/lib/gitea/.ssh:/data/git/.ssh
|
||||
- name: data
|
||||
path: /data
|
||||
- src: /var/lib/gitea/.ssh
|
||||
path: /data/git/.ssh
|
||||
|
||||
docker_published_ports:
|
||||
- "127.0.0.1:{{ ports.gitea.ssh }}:22"
|
||||
docker_env:
|
||||
@@ -42,4 +52,9 @@ docker_env:
|
||||
|
||||
docker_network_mode: host # Usually you don't want to define this
|
||||
|
||||
dockerfile: # For building a custom container image locally
|
||||
run:
|
||||
- "apt-get update && apt-get install -y libmemcached-dev zlib1g-dev && pecl install memcached-3.2.0 && docker-php-ext-enable memcached"
|
||||
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user