docker-compose.yml 519 Bytes
Newer Older
1 2 3 4
version: '2.1'
services:

  web:
5
    image: pubsweet/pubsweet:base
6
    command: sh -c "yarn && yarn seed && yarn server"
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    ports:
      - ${PORT:-3000}:3000
    volumes:
      - .:/app
    working_dir: /app
    environment:
      PGHOST: db
      PGUSER: $USER

  db:
    image: postgres:10
    ports:
      - 5432:5432
    environment:
      POSTGRES_USER: $USER
Jure's avatar
Jure committed
22
      POSTGRES_DB: starter
23
    volumes:
Jure's avatar
Jure committed
24
      - ./data/postgres:/var/lib/postgresql/data
25
      - ./scripts/test.sql:/docker-entrypoint-initdb.d/test.sql