Files
crates/docker-compose.yaml
T
2022-08-08 19:51:17 +10:00

35 lines
733 B
YAML

version: "3.3"
services:
pg:
image: postgres:latest
environment:
POSTGRES_USER: 'mcrates'
POSTGRES_DB: 'mcrates'
POSTGRES_PASSWORD: 'digdeep'
ports:
- '45432:5432'
volumes:
- "./db:/var/lib/postgresql/data"
# api:
# image: node:16
# working_dir: /opt/mcrates/api
# entrypoint: npm start
# environment:
# DATABASE_URL: 'postgresql://mcrates:digdeep@pg:5432/mcrates?schema=public'
# ports:
# - '41337:41337'
# volumes:
# - "./api:/opt/mcrates/api"
# client:
# image: node:16
# working_dir: /opt/mcrates/client
# entrypoint: npm start
# ports:
# - '8080:8080'
# volumes:
# - "./client:/opt/mcrates/client"