add ohmyform

This commit is contained in:
kev 2021-09-01 17:12:44 +08:00
parent 0662888879
commit 166e2e2c31
5 changed files with 91 additions and 17 deletions

View File

@ -360,6 +360,9 @@ A collection of delicious docker recipes.
- [x] n8nio/n8n
- [x] notaitech/nudenet
- [x] odoo
- [x] ohmyform
- [x] ohmyform/api
- [x] ohmyform/ui
- [x] osixia/openldap
- [x] openresty/openresty
- [x] kylemanna/openvpn

7
ohmyform/README.md Normal file
View File

@ -0,0 +1,7 @@
ohmyform
========
[OhMyForm][1] is 100% open source software to generate professional grade
mobile ready forms, surveys and questionnaires.
[1]: https://ohmyform.com/

View File

@ -0,0 +1,58 @@
version: "3.8"
services:
redis:
image: redis:alpine
command: --save 900 1
volumes:
- ./data/redis:/data
restart: unless-stopped
postgres:
image: postgres:13-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=ohmyform
- POSTGRES_PASSWORD=ohmyform
- POSTGRES_DB=ohmyform
restart: unless-stopped
mailhog:
image: mailhog/mailhog
ports:
- "5051:8025"
restart: unless-stopped
api:
image: ohmyform/api
ports:
- "8090:5000"
environment:
- CREATE_ADMIN=TRUE
- ADMIN_EMAIL=admin@local.host
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin
- DATABASE_DRIVER=postgres
- DATABASE_URL=postgresql://ohmyform:ohmyform@postgres:5432/ohmyform
- MAILER_URI=smtp://mailhog:1025
- REDIS_URL=redis://redis
- PORT=5000
depends_on:
- mailhog
- postgres
- redis
restart: unless-stopped
ui:
image: ohmyform/ui
ports:
- "8080:5000"
environment:
- ENDPOINT=http://localhost:8090/graphql
- SERVER_ENDPOINT=http://api:5000/graphql
- PORT=5000
depends_on:
- api
restart: unless-stopped

View File

@ -6,14 +6,17 @@ portainer
## docker-compose.yml
```yaml
portainer:
image: portainer/portainer
ports:
- "9000:9000"
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: always
version: "3.8"
services:
portainer:
image: portainer/portainer-ce
ports:
- "8000:8000"
- "9000:9000"
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
```
[1]: http://portainer.io/
[1]: https://documentation.portainer.io/v2.0/deploy/ceinstalldocker/

View File

@ -1,8 +1,11 @@
portainer:
image: portainer/portainer
ports:
- "9000:9000"
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: always
version: "3.8"
services:
portainer:
image: portainer/portainer-ce
ports:
- "8000:8000"
- "9000:9000"
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped