2018-07-25 16:42:04 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
2018-10-11 17:37:39 +02:00
|
|
|
container_name: mobilizon_db
|
2018-07-25 16:42:04 +02:00
|
|
|
restart: unless-stopped
|
2019-01-03 11:33:52 +01:00
|
|
|
image: mdillon/postgis:11
|
2018-07-25 16:42:04 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: postgres
|
2018-10-11 17:37:39 +02:00
|
|
|
POSTGRES_DB: mobilizon_dev
|
2019-04-17 17:14:44 +02:00
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
2018-07-25 16:42:04 +02:00
|
|
|
|
|
|
|
front:
|
2018-10-11 17:37:39 +02:00
|
|
|
container_name: mobilizon_front
|
2018-07-25 16:42:04 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
build: ./js
|
|
|
|
volumes:
|
|
|
|
- './js:/app/js'
|
|
|
|
ports:
|
2018-12-17 11:24:26 +01:00
|
|
|
- "8888:8080"
|
2018-07-25 16:42:04 +02:00
|
|
|
entrypoint: entrypoint
|
|
|
|
|
|
|
|
api:
|
2018-10-11 17:37:39 +02:00
|
|
|
container_name: mobilizon_api
|
2018-07-25 16:42:04 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- '.:/app'
|
|
|
|
ports:
|
2019-01-03 11:33:52 +01:00
|
|
|
- "4000:4001"
|
2018-07-25 16:42:04 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
environment:
|
2019-01-03 11:33:52 +01:00
|
|
|
# Environment: Prod when ready
|
2018-12-17 11:24:26 +01:00
|
|
|
MIX_ENV: dev
|
2019-01-03 11:33:52 +01:00
|
|
|
# Instance
|
|
|
|
MOBILIZON_INSTANCE_NAME: My Mobilizon Instance
|
|
|
|
MOBILIZON_INSTANCE_HOST: mobilizon.me
|
|
|
|
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
|
|
|
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "false"
|
|
|
|
MOBILIZON_DATABASE_PASSWORD: postgres
|
|
|
|
MOBILIZON_DATABASE_USERNAME: postgres
|
|
|
|
MOBILIZON_DATABASE_DBNAME: mobilizon_dev
|
|
|
|
MOBILIZON_DATABASE_HOST: postgres
|
2018-07-25 16:42:04 +02:00
|
|
|
entrypoint: entrypoint
|
2019-04-17 17:14:44 +02:00
|
|
|
volumes:
|
|
|
|
pgdata:
|
|
|
|
.:
|