2020-06-04 02:59:50 -07:00
|
|
|
# WARNING!! This is to build from source
|
|
|
|
|
|
|
|
# to use a version that is prebuilt copy one of the entries from the examples folder!
|
|
|
|
|
|
|
|
|
2019-04-29 19:09:25 -07:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis
|
2020-06-01 13:11:00 -07:00
|
|
|
ohmyform:
|
|
|
|
build: .
|
2020-05-31 18:43:50 -07:00
|
|
|
environment:
|
2020-06-01 13:11:00 -07:00
|
|
|
CREATE_ADMIN: "TRUE"
|
2020-05-31 18:43:50 -07:00
|
|
|
MAILER_URI: smtp://mail:1025
|
2021-05-02 06:53:01 -07:00
|
|
|
DATABASE_DRIVER: postgres
|
|
|
|
DATABASE_URL: postgresql://root:root@db:5432/ohmyform
|
|
|
|
LOGIN_NOTE: "login with root:root!"
|
|
|
|
SECRET_KEY: 12345
|
2019-04-29 19:09:25 -07:00
|
|
|
links:
|
2021-05-02 06:53:01 -07:00
|
|
|
- db
|
2019-04-29 19:09:25 -07:00
|
|
|
- redis
|
2019-07-12 02:00:31 -07:00
|
|
|
- mail
|
2019-04-29 19:09:25 -07:00
|
|
|
ports:
|
2021-05-02 06:53:01 -07:00
|
|
|
- "5200:3000"
|
2019-04-29 19:09:25 -07:00
|
|
|
depends_on:
|
2021-05-02 06:53:01 -07:00
|
|
|
- db
|
2019-04-29 19:09:25 -07:00
|
|
|
- redis
|
2019-07-11 16:17:21 -07:00
|
|
|
mail:
|
|
|
|
image: mailhog/mailhog
|
2019-04-29 19:09:25 -07:00
|
|
|
ports:
|
2021-05-02 06:53:01 -07:00
|
|
|
- "5051:8025"
|
|
|
|
db:
|
|
|
|
image: postgres:10-alpine
|
|
|
|
volumes:
|
|
|
|
- ./pg_data:/var/lib/postgresql/data
|
2019-07-15 06:02:21 -07:00
|
|
|
environment:
|
2021-05-02 06:53:01 -07:00
|
|
|
POSTGRES_USER: root
|
|
|
|
POSTGRES_PASSWORD: root
|
|
|
|
POSTGRES_DB: ohmyform
|