1
2
3
4
5
6
7
8
9
10
11
12
version: "3"

services:
  web:
    build: .
    env_file:
      - .env
    environment:
      # The host here is `db`, NOT `127.0.0.1`
      - DATABASE_URL=postgres://longtan:password@db/longtan
    ports:
      - "3000:3000"