This repository was archived by the owner on Oct 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.ci.yml
More file actions
72 lines (67 loc) · 1.72 KB
/
docker-compose.ci.yml
File metadata and controls
72 lines (67 loc) · 1.72 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
test_browser:
build:
dockerfile: ./Dockerfile-test_browser
image: elifesciences/test_browser:${IMAGE_TAG}
command: sh -c "./scripts/wait-for-app.sh app:3000 ; socat -d tcp-listen:10081,reuseaddr,fork tcp:localhost:10080 & npm run test:browser -- --screenshots /tmp/screenshots --screenshots-on-fails"
depends_on:
- app
environment:
BROWSER:
NODE_ENV:
NODE_CONFIG_ENV:
PGHOST:
PGUSER:
PGPASSWORD:
PGDATABASE:
PUBSWEET_SECRET:
volumes:
- ./build/screenshots:/tmp/screenshots
app:
build:
dockerfile: ./Dockerfile-app
image: elifesciences/elife-xpub:${IMAGE_TAG}
# no need to start the up in any scenario, yet
command: sh -c "npx pubsweet server"
depends_on:
- postgres
- api-dummy
- fakes3
- sftp
environment:
BROWSER:
NODE_ENV:
NODE_CONFIG_ENV:
PGHOST:
PGUSER:
PGPASSWORD:
PGDATABASE:
PUBSWEET_SECRET:
volumes:
- ./build/screenshots:/tmp/screenshots
- ./build/logs/:/var/log/xpub
- ./build/jest-junit/:/tmp/jest-junit
api-dummy:
build:
dockerfile: ./Dockerfile-api-dummy
context: .
ports:
- 8080:8080
sftp:
image: atmoz/sftp:alpine
volumes:
- ./build:/home/test/upload
ports:
- "2222:22"
command: test:tset:1000
postgres:
image: postgres:10.4
ports:
- 5432:5432
environment:
POSTGRES_USER:
POSTGRES_PASSWORD:
volumes:
- ./scripts/test-ci.sql:/docker-entrypoint-initdb.d/test-ci.sql
command: postgres -c logging_collector=on -c log_statement=all -c log_destination=stderr -c log_directory=/var/lib/postgresql/data/logs