https://github.com/cybrox/docker-accent
Dockerfile for mirego/accent
https://github.com/cybrox/docker-accent
accent docker docker-image
Last synced: 7 months ago
JSON representation
Dockerfile for mirego/accent
- Host: GitHub
- URL: https://github.com/cybrox/docker-accent
- Owner: cybrox
- Created: 2018-05-29T17:43:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T13:29:13.000Z (over 6 years ago)
- Last Synced: 2025-01-28T12:47:14.260Z (8 months ago)
- Topics: accent, docker, docker-image
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-accent
There are instructions for deploying [accent](https://github.com/mirego/accent) on either a local OSX machine or heroku but there is no official docker setup. So here's a docker image for running Accent.#### Environment
Check out the [official README](https://github.com/mirego/accent#environment-variables) for a list of environment variables used by Accent. The docker-compose example below shows an example configuration. I recommend you at least provide it
* `MIX_ENV`
* `PORT`
* `WEBAPP_PORT`
* `DATABASE_URL`Don't forget you will have to manually run `mix ecto.setup` when running this container for the first time!
#### Docker Compose
An example of how this repository can be used as part of a docker-compose setup```
version: "3.2"services:
accent:
build: ./accent
links:
- postgres
ports:
- 4000:4000
- 4200:4200
environment:
MIX_ENV: dev
PORT: 4000
WEBAPP_PORT: 4200
DATABASE_URL: postgres://postgres:password@postgres/accent_developmentpostgres:
image: postgres:10.4
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgresdata:/var/lib/postgresql/datavolumes:
postgresdata:
driver: local```