mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
f8ed5cd779
* Also add special deps for argon2 support inside the Alpine image * Make sure yarn install is triggered Signed-off-by: Thomas Citharel <tcit@tcit.fr>
36 lines
921 B
YAML
36 lines
921 B
YAML
version: '3'
|
|
|
|
services:
|
|
postgres:
|
|
container_name: mobilizon_db
|
|
restart: unless-stopped
|
|
image: mdillon/postgis:11
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: mobilizon_dev
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
api:
|
|
container_name: mobilizon_api
|
|
restart: unless-stopped
|
|
build: .
|
|
volumes:
|
|
- '.:/app'
|
|
ports:
|
|
- "4000:4001"
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
MIX_ENV: "dev"
|
|
MOBILIZON_INSTANCE_NAME: My Mobilizon Instance
|
|
MOBILIZON_INSTANCE_HOST: mobilizon.me
|
|
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
|
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "true"
|
|
MOBILIZON_DATABASE_PASSWORD: postgres
|
|
MOBILIZON_DATABASE_USERNAME: postgres
|
|
MOBILIZON_DATABASE_DBNAME: mobilizon_dev
|
|
MOBILIZON_DATABASE_HOST: postgres
|
|
command: "mix phx.deps_migrate_serve"
|
|
volumes:
|
|
pgdata:
|
|
.:
|