1
0
ohmyform/examples/docker_nginx/docker-compose.yml

45 lines
1000 B
YAML
Raw Normal View History

2020-06-04 02:48:33 -07:00
version: "3"
services:
db:
image: postgres:10-alpine
2020-06-04 02:48:33 -07:00
volumes:
- ./pg_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: ohmyform
2022-03-13 15:39:46 -07:00
restart: unless-stopped
2020-06-04 02:48:33 -07:00
nginx:
image: nginx:alpine
volumes:
- "./default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "8080:80"
2020-06-04 02:59:50 -07:00
depends_on:
- ui
- api
2022-03-13 15:39:46 -07:00
restart: unless-stopped
2020-06-04 02:48:33 -07:00
ui:
image: ohmyform/ui
environment:
SERVER_ENDPOINT: http://api:5000/graphql
2020-06-04 02:48:33 -07:00
PORT: 5000
2022-03-13 15:39:46 -07:00
restart: unless-stopped
2020-06-04 02:48:33 -07:00
api:
image: ohmyform/api
environment:
CREATE_ADMIN: "true"
ADMIN_EMAIL: admin@local.host
ADMIN_USERNAME: admin
ADMIN_PASSWORD: admin
DATABASE_DRIVER: postgres
DATABASE_URL: postgresql://root:root@db:5432/ohmyform
2020-06-04 02:48:33 -07:00
MAILER_URI: smtp://local.host
REDIS_URL: redis://redis
PORT: 5000
links:
- db
2020-06-04 02:48:33 -07:00
depends_on:
- db
2022-03-13 15:39:46 -07:00
restart: unless-stopped