Compare commits
1 Commits
51df7e0f01
...
f6a824225b
| Author | SHA1 | Date | |
|---|---|---|---|
| f6a824225b |
@@ -1,3 +0,0 @@
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_DB=confient_dev
|
||||
@@ -1,11 +0,0 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
ports:
|
||||
- 127.0.0.1:5432:5432
|
||||
environment:
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- POSTGRES_DB=$POSTGRES_DB
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
@@ -1,7 +1,3 @@
|
||||
POSTGRES_USER=confient
|
||||
POSTGRES_DB=confient
|
||||
POSTGRES_PASSWORD=password
|
||||
CONFIENT_DATA=/tmp/confient/uploads
|
||||
POSTGRES_DATA=/tmp/confient/pg
|
||||
# gen one with mix phx.gen.secret
|
||||
SECRET_KEY_BASE=aQFwnczmCcy1JOQ/opboa+YSETybKWCELSCjI7i7atIBnLesYJ2dVYVgouIi7SYs
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_DB=confient_dev
|
||||
|
||||
@@ -1,26 +1,11 @@
|
||||
version: '3'
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
volumes:
|
||||
- $POSTGRES_DATA:/var/lib/postgres
|
||||
ports:
|
||||
- 127.0.0.1:5432:5432
|
||||
environment:
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- POSTGRES_DB=$POSTGRES_DB
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
|
||||
confient:
|
||||
image: papey/confient:latest
|
||||
ports:
|
||||
- 127.0.0.1:4000:4000
|
||||
volumes:
|
||||
- $CONFIENT_DATA:/srv/confient/uploads
|
||||
environment:
|
||||
- POSTGRES_HOST=postgres
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- DATABASE_URL=ecto://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
|
||||
- SECRET_KEY_BASE=$SECRET_KEY_BASE
|
||||
- CONFIENT_UPLOAD_DIR=/srv/confient/uploads
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
7
compose/release/.env
Normal file
7
compose/release/.env
Normal file
@@ -0,0 +1,7 @@
|
||||
POSTGRES_USER=confient
|
||||
POSTGRES_DB=confient
|
||||
POSTGRES_PASSWORD=password
|
||||
CONFIENT_DATA=/tmp/confient/uploads
|
||||
POSTGRES_DATA=/tmp/confient/pg
|
||||
# gen one with mix phx.gen.secret
|
||||
SECRET_KEY_BASE=aQFwnczmCcy1JOQ/opboa+YSETybKWCELSCjI7i7atIBnLesYJ2dVYVgouIi7SYs
|
||||
26
compose/release/docker-compose.yml
Normal file
26
compose/release/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
volumes:
|
||||
- $POSTGRES_DATA:/var/lib/postgres
|
||||
environment:
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- POSTGRES_DB=$POSTGRES_DB
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
|
||||
confient:
|
||||
image: papey/confient:latest
|
||||
ports:
|
||||
- 127.0.0.1:4000:4000
|
||||
volumes:
|
||||
- $CONFIENT_DATA:/srv/confient/uploads
|
||||
environment:
|
||||
- POSTGRES_HOST=postgres
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- DATABASE_URL=ecto://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
|
||||
- SECRET_KEY_BASE=$SECRET_KEY_BASE
|
||||
- CONFIENT_UPLOAD_DIR=/srv/confient/uploads
|
||||
depends_on:
|
||||
- postgres
|
||||
Reference in New Issue
Block a user