Skip to content
Snippets Groups Projects
docker-compose.yml 1.12 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:
      - './js:/app/js'
    ports:
ty kayn's avatar
ty kayn committed
      - "8888:8080"
Thomas Citharel's avatar
Thomas Citharel committed
    entrypoint: entrypoint

  api:
    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
    environment:
      # Environment: Prod when ready
ty kayn's avatar
ty kayn committed
      MIX_ENV: dev
      # 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
Thomas Citharel's avatar
Thomas Citharel committed
    entrypoint: entrypoint
Vincent's avatar
Vincent committed
volumes:
  pgdata:
  .: