-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_docker-compose.yml
77 lines (71 loc) · 1.76 KB
/
test_docker-compose.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
68
69
70
71
72
73
74
75
76
77
#docker compose -f test_docker-compose.yml up
services:
api_test:
build:
dockerfile: test_api.Dockerfile
container_name: altzone_api_test
depends_on:
- db_test
networks:
- backend
- db
environment:
- HOST=altzone_api_test
- PORT=8080
- MONGO_USERNAME=testUser
- MONGO_PASSWORD=superSecretPassword
- MONGO_HOST=altzone_db_test
- MONGO_PORT=27017
- MONGO_DB_NAME=altzone_test
db_test:
image: mongo:4.2.24-bionic
container_name: altzone_db_test
networks:
- db
- backend
# volumes:
# - altzone_db_test:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=testUser
- MONGO_INITDB_ROOT_PASSWORD=superSecretPassword
- MONGO_INITDB_DATABASE=altzone_test
ports:
- 27017:27017
# panel_test:
# image: mongo-express:0.54.0
# container_name: altzone_panel_test
# depends_on:
# - db_test
# networks:
# - backend
# - db
# environment:
# - ME_CONFIG_MONGODB_ADMINUSERNAME=testUser
# - ME_CONFIG_MONGODB_ADMINPASSWORD=superSecretPassword
# - ME_CONFIG_MONGODB_SERVER=altzone_db_test
# - ME_CONFIG_SITE_BASEURL=/panel/
# - ME_CONFIG_SITE_COOKIESECRET=cookieParserMiddlewareSecret
# - ME_CONFIG_SITE_SESSIONSECRET=secretForSessionIdCookie
# - ME_CONFIG_OPTIONS_EDITORTHEME=ayu-dark
# ports:
# - 8081:8081
proxy_test:
build:
dockerfile: test_nginx.Dockerfile
container_name: altzone_proxy_test
depends_on:
- api_test
ports:
- 80:80
networks:
- backend
volumes:
- ./test_nginx.conf:/etc/nginx/nginx.conf:ro
networks:
backend:
name: altzone_backend_test
db:
name: altzone_db_test
volumes:
altzone_db_test:
node_modules: