-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ci.yml
51 lines (51 loc) · 1.29 KB
/
docker-compose.ci.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3"
services:
db:
image: cockroachdb/cockroach:latest
ports:
# Port for connecting to the DB
- "26257:26257"
# Port for dashboard
- "8080:8080"
environment:
COCKROACH_DATABASE: test
command: start-single-node --insecure
server:
build: ./server
depends_on:
- db
ports:
- "3333:3333"
environment:
PORT: 3333
DATABASE_URL: postgresql://root@db:26257/test?sslmode=disable
NODE_ENV: test
HOSTNAME: localhost
ADMIN_EMAIL: test@test.com
APP_KEY: supersecretsauce
API_TOKEN: supersecretspicysauce
SPACES_ACCESS_KEY_ID: spaces_access_key
SPACES_SECRET_ACCESS_KEY: spaces_secret_key
SPACES_REGION: spaces_region
SPACES_BUCKET: spaces_bucket
SPACES_ENDPOINT: spaces_endpoint
command: yarn run dev
client:
build: ./client
ports:
- "3000:3000"
depends_on:
- server
environment:
API_TOKEN: supersecretspicysauce
NODE_ENV: test
command: yarn run start
browser_test:
build: ./browser_test
depends_on:
- client
volumes:
- ./browser_test/cypress/screenshots:/app/cypress/screenshots
# Need to use 'host' network mode to avoid cross-host errors
# from Webpack server
network_mode: "host"