Add docker-compose dev

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-07-25 16:42:04 +02:00
parent bb1cdc2043
commit c4cfb081e7
8 changed files with 108 additions and 16 deletions

38
docker-compose.yml Normal file
View File

@@ -0,0 +1,38 @@
version: '3'
services:
postgres:
container_name: eventos_db
restart: unless-stopped
image: mdillon/postgis:10
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: eventos_dev
front:
container_name: eventos_front
restart: unless-stopped
build: ./js
volumes:
- './js:/app/js'
ports:
- "80:8080"
entrypoint: entrypoint
api:
container_name: eventos_api
restart: unless-stopped
build: .
volumes:
- '.:/app'
ports:
- "4000:4000"
depends_on:
- postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DATABASE: eventos_dev
POSTGRES_HOST: postgres
entrypoint: entrypoint