Skip to content

Instantly share code, notes, and snippets.

@maxx-coffee
Created April 1, 2020 21:36
Show Gist options
  • Save maxx-coffee/d4dd34d91649d7b1de4f627caf3cfee8 to your computer and use it in GitHub Desktop.
Save maxx-coffee/d4dd34d91649d7b1de4f627caf3cfee8 to your computer and use it in GitHub Desktop.
version: '3'
services:
influxdb:
image: influxdb
container_name: influxdb
restart: always
ports:
- 8086:8086
volumes:
- influxdb-volume:/var/lib/influxdb
db:
image: postgres:9.6
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
influxdb-volume:
FROM elixir:latest
MAINTAINER Josh Coffee
RUN apt-get update && apt-get install --yes postgresql-client nodejs inotify-tools
ADD . /app
RUN mix local.hex --force
RUN mix archive.install --force hex phx_new 1.4.16
WORKDIR /app
EXPOSE 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment