Skip to content
Snippets Groups Projects
docker-compose.yml 1.08 KiB
Newer Older
Thomas Citharel's avatar
Thomas Citharel committed
version: '3'

services:
  postgres:
    container_name: mobilizon_db
Thomas Citharel's avatar
Thomas Citharel committed
    restart: unless-stopped
    image: mdillon/postgis:11
Thomas Citharel's avatar
Thomas Citharel committed
    environment:
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: mobilizon_dev
Vincent's avatar
Vincent committed
    volumes:
      - pgdata:/var/lib/postgresql/data

Thomas Citharel's avatar
Thomas Citharel committed

  front:
    container_name: mobilizon_front
Thomas Citharel's avatar
Thomas Citharel committed
    restart: unless-stopped
    build: ./js
    volumes:
      - '.:/app'
Thomas Citharel's avatar
Thomas Citharel committed
    ports:
ty kayn's avatar
ty kayn committed
      - "8888:8080"
    command: yarn run dev
    container_name: mobilizon_api
Thomas Citharel's avatar
Thomas Citharel committed
    restart: unless-stopped
    build: .
    volumes:
      - '.:/app'
    ports:
Thomas Citharel's avatar
Thomas Citharel committed
    depends_on:
      - postgres
      - front
Thomas Citharel's avatar
Thomas Citharel committed
    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: "false"
      MOBILIZON_DATABASE_PASSWORD: postgres
      MOBILIZON_DATABASE_USERNAME: postgres
      MOBILIZON_DATABASE_DBNAME: mobilizon_dev
      MOBILIZON_DATABASE_HOST: postgres
    command: "mix phx.migrate_serve"
Vincent's avatar
Vincent committed
volumes:
  pgdata:
  .: