-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (33 loc) · 1.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3'
services:
app:
image: ygou/xpub-faraday:0.4.0
build:
context: .
dockerfile: ./Dockerfile
# command: sh -c "cd packages/xpub-faraday && yarn install --frozen-lockfile && ./scripts/wait-for-it.sh postgres:5432 -s -t 40 -- npx pubsweet server"
# command: sh -c "yarn install --frozen-lockfile && ./scripts/wait-for-it.sh postgres:5432 -s -t 40 -- npx pubsweet server"
# command: sh -c "./scripts/wait-for-it.sh postgres:5432 -s -t 40 -- npx pubsweet server"
# working_dir: /home/xpub/packages/xpub-faraday
command: sh -c "npx pubsweet server"
ports:
- ${PORT:-3000}:3000
# volumes:
# - ./:/home/xpub
depends_on:
- postgres
environment:
NODE_ENV: development
PGHOST: postgres
PGUSER: postgres
postgres:
image: postgres:10
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
# volumes:
# - postgres-volume:/var/lib/postgresql/data
# - ./scripts/test.sql:/docker-entrypoint-initdb.d/test.sql
# volumes:
# postgres-volume: