Get back original root Dockerfile
This commit is contained in:
parent
3e19fe1fe2
commit
2012d1b011
|
@ -1,39 +1,45 @@
|
||||||
version: "3"
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mobilizon:
|
postgres:
|
||||||
image: mobilizon
|
container_name: mobilizon_db
|
||||||
|
restart: unless-stopped
|
||||||
|
image: mdillon/postgis:11
|
||||||
environment:
|
environment:
|
||||||
- MOBILIZON_INSTANCE_NAME
|
POSTGRES_PASSWORD: postgres
|
||||||
- MOBILIZON_INSTANCE_HOST
|
POSTGRES_DB: mobilizon_dev
|
||||||
- MOBILIZON_INSTANCE_EMAIL
|
|
||||||
- MOBILIZON_REPLY_EMAIL
|
|
||||||
- MOBILIZON_INSTANCE_REGISTRATIONS_OPEN=true
|
|
||||||
- MOBILIZON_DATABASE_USERNAME=${POSTGRES_USER}
|
|
||||||
- MOBILIZON_DATABASE_PASSWORD=${POSTGRES_PASSWORD}
|
|
||||||
- MOBILIZON_DATABASE_DBNAME=${POSTGRES_DB}
|
|
||||||
- MOBILIZON_DATABASE_HOST=db
|
|
||||||
- MOBILIZON_INSTANCE_SECRET_KEY_BASE
|
|
||||||
- MOBILIZON_INSTANCE_SECRET_KEY
|
|
||||||
- MOBILIZON_SMTP_SERVER=yoursmtpserver
|
|
||||||
- MOBILIZON_SMTP_HOSTNAME=your.smtp.domain
|
|
||||||
- MOBILIZON_SMTP_USERNAME
|
|
||||||
- MOBILIZON_SMTP_PASSWORD
|
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/public/upload:/app/upload
|
- pgdata:/var/lib/postgresql/data
|
||||||
|
api:
|
||||||
|
container_name: mobilizon_api
|
||||||
|
restart: unless-stopped
|
||||||
|
build: .
|
||||||
|
volumes:
|
||||||
|
- '.:/app'
|
||||||
ports:
|
ports:
|
||||||
- "4000:4000"
|
- "4000:4000"
|
||||||
|
depends_on:
|
||||||
db:
|
- postgres
|
||||||
image: postgis/postgis
|
|
||||||
volumes:
|
|
||||||
- /tmp/db:/var/lib/postgresql/data
|
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER
|
MIX_ENV: "dev"
|
||||||
- POSTGRES_PASSWORD
|
DOCKER: "true"
|
||||||
- POSTGRES_DB
|
MOBILIZON_INSTANCE_NAME: My Mobilizon Instance
|
||||||
|
MOBILIZON_INSTANCE_HOST: mobilizon.me
|
||||||
networks:
|
MOBILIZON_INSTANCE_EMAIL: noreply@mobilizon.me
|
||||||
default:
|
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: "true"
|
||||||
ipam:
|
MOBILIZON_DATABASE_PASSWORD: postgres
|
||||||
driver: default
|
MOBILIZON_DATABASE_USERNAME: postgres
|
||||||
|
MOBILIZON_DATABASE_DBNAME: mobilizon_dev
|
||||||
|
MOBILIZON_DATABASE_HOST: postgres
|
||||||
|
command: >
|
||||||
|
sh -c "cd js &&
|
||||||
|
yarn install &&
|
||||||
|
cd ../ &&
|
||||||
|
mix deps.get &&
|
||||||
|
mix compile &&
|
||||||
|
mix ecto.create &&
|
||||||
|
mix ecto.migrate &&
|
||||||
|
mix phx.server"
|
||||||
|
volumes:
|
||||||
|
pgdata:
|
||||||
|
.:
|
||||||
|
|
Loading…
Reference in a new issue