1
0

changed docker restart policy

This commit is contained in:
Michael Schramm 2022-03-13 23:39:46 +01:00
parent 9c58d92aee
commit 912be0bc38
4 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed ### Changed
- docker restart policy (https://github.com/ohmyform/ohmyform/issues/164)
### Fixed ### Fixed
### Security ### Security

View File

@ -10,6 +10,7 @@ services:
POSTGRES_USER: root POSTGRES_USER: root
POSTGRES_PASSWORD: root POSTGRES_PASSWORD: root
POSTGRES_DB: ohmyform POSTGRES_DB: ohmyform
restart: unless-stopped
ui: ui:
image: ohmyform/ui image: ohmyform/ui
environment: environment:
@ -18,6 +19,7 @@ services:
PORT: 5000 PORT: 5000
ports: ports:
- "8080:5000" - "8080:5000"
restart: unless-stopped
api: api:
image: ohmyform/api image: ohmyform/api
environment: environment:
@ -38,3 +40,4 @@ services:
depends_on: depends_on:
- db - db
- redis - redis
restart: unless-stopped

View File

@ -15,3 +15,4 @@ services:
LOGIN_NOTE: "Either login with admin:admin or create your own account to test OhMyForm" LOGIN_NOTE: "Either login with admin:admin or create your own account to test OhMyForm"
ports: ports:
- "8080:3000" - "8080:3000"
restart: unless-stopped

View File

@ -8,6 +8,7 @@ services:
POSTGRES_USER: root POSTGRES_USER: root
POSTGRES_PASSWORD: root POSTGRES_PASSWORD: root
POSTGRES_DB: ohmyform POSTGRES_DB: ohmyform
restart: unless-stopped
nginx: nginx:
image: nginx:alpine image: nginx:alpine
volumes: volumes:
@ -17,11 +18,13 @@ services:
depends_on: depends_on:
- ui - ui
- api - api
restart: unless-stopped
ui: ui:
image: ohmyform/ui image: ohmyform/ui
environment: environment:
SERVER_ENDPOINT: http://api:5000/graphql SERVER_ENDPOINT: http://api:5000/graphql
PORT: 5000 PORT: 5000
restart: unless-stopped
api: api:
image: ohmyform/api image: ohmyform/api
environment: environment:
@ -38,3 +41,4 @@ services:
- db - db
depends_on: depends_on:
- db - db
restart: unless-stopped