Created
April 1, 2020 21:36
-
-
Save maxx-coffee/d4dd34d91649d7b1de4f627caf3cfee8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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