forked from ohtuprojekti-eficode/Amandus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.e2etest.yml
59 lines (53 loc) · 1.31 KB
/
docker-compose.e2etest.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
52
53
54
55
56
57
58
59
version: '3'
services:
frontend:
command: yarn start
build: ./frontend
stdin_open: true
volumes:
- ./frontend/:/usr/src/frontend
- ./frontend/node_modules:/usr/src/frontend/node_modules
ports:
- '3000:3000'
backend:
command: sh -c "sleep 5 && yarn run migrate-up-prod && yarn dev"
build: ./backend
stdin_open: true
volumes:
- ./backend/:/usr/src/app
- ./backend/node_modules:/usr/src/app/node_modules
ports:
- '3001:3001'
environment:
- NODE_ENV=e2etest
- DATABASE_URL=postgres://test:test@userdata:5432/test
- DATABASE_URL_TEST=postgres://test:test@userdata:5432/test
depends_on:
- userdata
userdata:
image: 'postgres'
environment:
- POSTGRES_USER=test
- POSTGRES_DB=test
- POSTGRES_PASSWORD=test
volumes:
- testdata-data:/var/lib/postgresql/data/
ports:
- '5432:5432'
language-server:
image: 'ohtuamandus/robot-language-server'
ports:
- '5555:5555'
tokenservice:
command: yarn dev
build: ./tokenservice
stdin_open: true
volumes:
- ./tokenservice/:/usr/src/tokenservice
- ./tokenservice/node_modules:/usr/src/app/node_modules
ports:
- '3002:3002'
environment:
- NODE_ENV=e2etest
volumes:
testdata-data: