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" # pg-test: # image: postgres:latest # environment: # POSTGRES_USER: 'mcrates' # POSTGRES_DB: 'test'# POSTGRES_PASSWORD: 'digdeep' # ports: # - '55432:5432' 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" nginx: image: nginx:latest volumes: - './nginx/localhost.nginx.conf:/etc/nginx/conf.d/default.conf' ports: - '80:80'