4aa46c2493
The server has been initially dockerfied. It can be built using `docker-compose build --no-cache` and using normal docker-compose up and downs BREAKING CHANGE: The server now runs inside a docker container
25 lines
516 B
YAML
25 lines
516 B
YAML
version: '3.5'
|
|
|
|
services:
|
|
menuserver:
|
|
container_name: menuserver
|
|
build:
|
|
context: .
|
|
dockerfile: ./Docker/Dockerfile
|
|
image: menuserver_docker
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
|
|
postgres:
|
|
image: "postgres:${POSTGRES_VERSION}"
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
volumes:
|
|
postgres: |