Anthony Debucquoy
6503af0096
This allow you to run `docker-compose up` in the backend directory to run the whole backend in a docker. by default the port is set to 4000
14 lines
246 B
YAML
14 lines
246 B
YAML
services:
|
|
backend:
|
|
build: .
|
|
ports:
|
|
- 4000:8080
|
|
postgres:
|
|
image: 'postgres:latest'
|
|
environment:
|
|
- 'POSTGRES_DB=mydatabase'
|
|
- 'POSTGRES_PASSWORD=secret'
|
|
- 'POSTGRES_USER=myuser'
|
|
ports:
|
|
- '5432'
|