2021-07-02 15:48:40 +02:00
|
|
|
version: "3.2"
|
2018-07-25 16:42:04 +02:00
|
|
|
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
|
2021-07-02 15:48:40 +02:00
|
|
|
image: postgis/postgis
|
2018-07-25 16:42:04 +02:00
|
|
|
environment:
|
2021-07-02 15:48:40 +02:00
|
|
|
- POSTGRES_USER
|
|
|
|
- POSTGRES_PASSWORD
|
|
|
|
- POSTGRES_DB
|
|
|
|
- POSTGRES_PORT
|
2019-04-17 17:14:44 +02:00
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
2018-07-25 16:42:04 +02:00
|
|
|
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:
|
2020-12-21 10:08:43 +01:00
|
|
|
- ".:/app"
|
2018-07-25 16:42:04 +02:00
|
|
|
ports:
|
2021-07-02 15:48:40 +02:00
|
|
|
- 4000:4000
|
2023-11-22 20:57:50 +01:00
|
|
|
- 5173:5173
|
2018-07-25 16:42:04 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
environment:
|
2019-04-17 17:16:21 +02:00
|
|
|
MIX_ENV: "dev"
|
2020-01-30 20:27:25 +01:00
|
|
|
DOCKER: "true"
|
2019-01-03 11:33:52 +01:00
|
|
|
MOBILIZON_INSTANCE_NAME: My Mobilizon Instance
|
2021-07-02 15:48:40 +02:00
|
|
|
MOBILIZON_INSTANCE_HOST: localhost
|
|
|
|
MOBILIZON_INSTANCE_HOST_PORT: 4000
|
|
|
|
MOBILIZON_INSTANCE_PORT: 4000
|
2019-01-03 11:33:52 +01:00
|
|
|
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
|
2019-04-17 17:13:20 +02:00
|
|
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "true"
|
2021-07-02 15:48:40 +02:00
|
|
|
MOBILIZON_DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
MOBILIZON_DATABASE_USERNAME: ${POSTGRES_USER}
|
|
|
|
MOBILIZON_DATABASE_DBNAME: ${POSTGRES_DB}
|
2019-01-03 11:33:52 +01:00
|
|
|
MOBILIZON_DATABASE_HOST: postgres
|
2021-07-02 15:48:40 +02:00
|
|
|
MOBILIZON_DATABASE_PORT: ${POSTGRES_PORT}
|
2023-11-23 15:33:31 +01:00
|
|
|
VITE_HOST: ${VITE_HOST:-localhost}
|
2021-08-03 18:08:49 +02:00
|
|
|
command: sh -c "mix phx.server"
|
2019-04-17 17:14:44 +02:00
|
|
|
volumes:
|
|
|
|
pgdata:
|
|
|
|
.:
|