2020-06-04 02:48:33 -07:00
|
|
|
version: "3"
|
|
|
|
services:
|
2021-05-02 09:37:46 -07:00
|
|
|
db:
|
|
|
|
image: postgres:10-alpine
|
2020-06-04 02:48:33 -07:00
|
|
|
volumes:
|
2021-05-02 09:37:46 -07:00
|
|
|
- ./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:
|
2021-05-06 15:32:49 -07:00
|
|
|
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
|
2021-05-02 09:37:46 -07:00
|
|
|
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:
|
2021-05-02 09:37:46 -07:00
|
|
|
- db
|
2020-06-04 02:48:33 -07:00
|
|
|
depends_on:
|
2021-05-02 09:37:46 -07:00
|
|
|
- db
|
2022-03-13 15:39:46 -07:00
|
|
|
restart: unless-stopped
|