mobilizon.chapril.org-mobil.../docker-compose.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

version: '3'
services:
postgres:
container_name: mobilizon_db
restart: unless-stopped
image: mdillon/postgis:11
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mobilizon_dev
2019-04-17 17:14:44 +02:00
volumes:
- pgdata:/var/lib/postgresql/data
front:
container_name: mobilizon_front
restart: unless-stopped
build: ./js
volumes:
2019-04-17 17:16:21 +02:00
- '.:/app'
ports:
2018-12-17 11:24:26 +01:00
- "8888:8080"
2019-04-17 17:16:21 +02:00
command: yarn run dev
api:
container_name: mobilizon_api
restart: unless-stopped
build: .
volumes:
- '.:/app'
ports:
- "4000:4001"
depends_on:
- postgres
2019-04-17 17:16:21 +02:00
- front
environment:
2019-04-17 17:16:21 +02:00
MIX_ENV: "dev"
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
2019-04-17 17:16:21 +02:00
command: "mix phx.migrate_serve"
2019-04-17 17:14:44 +02:00
volumes:
pgdata:
.: