forked from linux-odyssey/linux-odyssey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.testing.yml
More file actions
89 lines (84 loc) · 2.08 KB
/
docker-compose.testing.yml
File metadata and controls
89 lines (84 loc) · 2.08 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3'
services:
cypress:
build:
context: .
dockerfile: tests/Dockerfile
networks:
- internal
volumes:
- ./tests:/e2e/tests
environment:
- BASE_URL=http://app-test
- TESTING_USERNAME=alex
- TESTING_PASSWORD=Alex1234
# - DEBUG=cypress:*
depends_on:
- app-test
app-test:
image: ntutnpc/app:stable
build:
context: .
dockerfile: app/Dockerfile
target: prod
networks:
internal:
# Only open the port for debugging
# ports:
# - 5173:80
depends_on:
- backend
backend:
image: ntutnpc/backend:stable
build:
context: .
dockerfile: server/Dockerfile
target: prod
depends_on:
- db-test
networks:
- internal
- players
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./logs:/app/logs
environment:
- BASE_URL=http://app-test
- MONGO_URL=mongodb://user:user-password@db-test:27017/odyssey-test
- DOCKER_NETWORK=linux-odyssey-players
- SECRET_KEY=b1d2e917-17b9-4fce-9055-082dee6ec5d6 # Only for testing
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- SURVEY_URL=${SURVEY_URL}
- BUG_REPORT_URL=${BUG_REPORT_URL}
- NODE_ENV=development
- TESTING=true
- TESTING_USERNAME=alex
- TESTING_PASSWORD=Alex1234
- BACKEND_URL=http://backend:3000
db-test:
image: mongo
networks:
- internal
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin-password
- MONGO_USER=user
- MONGO_PASS=user-password
- MONGO_DB=odyssey-test
# ports:
# - 27017:27017
base:
image: ntutnpc/quest-base:stable
build:
context: .
dockerfile: ./quests/Dockerfile
networks:
internal:
players:
name: linux-odyssey-players
internal: true