-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.test.yml
68 lines (60 loc) · 1.48 KB
/
docker-compose.test.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
60
61
62
63
64
65
66
67
version: "3.5"
networks:
knests-test:
external: true
services:
e2e:
command: npm run test
# command: node server.js --hostname 0.0.0.0 --port="${SERVICE_PORT:-8080}"
build:
context: ./e2e_tests
volumes:
# - ./e2e_tests:/e2e/app
- ./client:/data
depends_on:
- client
environment:
CLIENT_URL: http://client:8080
networks:
- "knests-test"
client:
# command: node server.js --hostname 0.0.0.0 --port="${SERVICE_PORT:-8080}"
command: echo ${API_URL} && nginx -g "daemon off;"
build:
context: ./client
target: production
ports:
- "8082:8080"
environment:
- API_URL=server:8081
- PORT=8080
- NGINX_PORT=8080
networks:
- "knests-test"
server:
command: "npm run start:test"
build:
context: ./server
target: production
restart: "no"
env_file:
- ./server/docker/test.env
networks:
- "knests-test"
ports:
- "8001:8081"
environment:
DATABASE_URL: postgres://admin:5UPP3rSecr3tPAssword@postgres:5432/knests-test
JWT_SECRET: "sada*&^#(*&^^^#(*_|_&#_|_KJH#JKHG#_|_*(&#_|_*&#_|_(*&#^(*&#^_|_(*&#^_|_LKJ;o98(*SLKDJHLSKJH<M>n;loi098df904987"
NODE_ENV: test
postgres:
ports:
- "54320:5432"
environment:
POSTGRES_DB: knests-test
POSTGRES_USER: admin
POSTGRES_PASSWORD: 5UPP3rSecr3tPAssword
networks:
- "knests-test"
volumes:
- /var/lib/postgresql/data