2018-07-25 14:42:04 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
2018-10-11 15:37:39 +00:00
|
|
|
container_name: mobilizon_db
|
2018-07-25 14:42:04 +00:00
|
|
|
restart: unless-stopped
|
2019-01-03 10:33:52 +00:00
|
|
|
image: mdillon/postgis:11
|
2018-07-25 14:42:04 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: postgres
|
2018-10-11 15:37:39 +00:00
|
|
|
POSTGRES_DB: mobilizon_dev
|
2019-04-17 15:14:44 +00:00
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
2018-07-25 14:42:04 +00:00
|
|
|
api:
|
2018-10-11 15:37:39 +00:00
|
|
|
container_name: mobilizon_api
|
2018-07-25 14:42:04 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- '.:/app'
|
|
|
|
ports:
|
2019-10-08 08:10:54 +00:00
|
|
|
- "4000:4000"
|
2018-07-25 14:42:04 +00:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
environment:
|
2019-04-17 15:16:21 +00:00
|
|
|
MIX_ENV: "dev"
|
2019-01-03 10:33:52 +00:00
|
|
|
MOBILIZON_INSTANCE_NAME: My Mobilizon Instance
|
|
|
|
MOBILIZON_INSTANCE_HOST: mobilizon.me
|
|
|
|
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
|
2019-04-17 15:13:20 +00:00
|
|
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "true"
|
2019-01-03 10:33:52 +00:00
|
|
|
MOBILIZON_DATABASE_PASSWORD: postgres
|
|
|
|
MOBILIZON_DATABASE_USERNAME: postgres
|
|
|
|
MOBILIZON_DATABASE_DBNAME: mobilizon_dev
|
|
|
|
MOBILIZON_DATABASE_HOST: postgres
|
2019-10-16 09:12:42 +00:00
|
|
|
command: "mix phx.server"
|
2019-04-17 15:14:44 +00:00
|
|
|
volumes:
|
|
|
|
pgdata:
|
|
|
|
.:
|