-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
73 lines (67 loc) · 1.3 KB
/
docker-compose.test.yaml
File metadata and controls
73 lines (67 loc) · 1.3 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
73
services:
selenium:
container_name: selenium-test
image: selenium/standalone-chrome
ports:
- 4444:4444
- 5900:5900
- 7900:7900
networks:
- test
- frontend
node:
container_name: node-test
image: node:alpine
volumes:
- ./client/:/project
working_dir: /project/src/test
tty: true
command: sh -c "cd /project && npm install && sh"
networks:
- test
- frontend
backend:
container_name: backend
image: backend
build:
context: ./server
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: unless-stopped
env_file:
- server/.env
networks:
- backend
- frontend
mongodb:
container_name: mongodb
image: bitnamilegacy/mongodb:8.0.13
environment:
TEST_RUN: true
env_file:
- server/.env
volumes:
- mongo-data:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js
restart: unless-stopped
networks:
- backend
frontend:
container_name: client
image: client
build:
context: ./client
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8081:8080"
networks:
- frontend
volumes:
mongo-data:
networks:
backend:
driver: bridge
frontend:
test: