-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebgl_docker-compose.yaml
62 lines (58 loc) · 1.53 KB
/
webgl_docker-compose.yaml
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
services:
db_dev:
image: mongo:4.2.24-bionic
container_name: altzone_db_dev
#command: mongod --quiet --logpath /dev/null #disable logs
networks:
- db
volumes:
- altzone_db_dev:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=rootUser
- MONGO_INITDB_ROOT_PASSWORD=superSecretPassword
- MONGO_INITDB_DATABASE=altzone_dev
ports:
- 27017:27017
#Only for development (it allows run malicious JS code on DB)
#Starts at 8081 port be default
panel_dev:
image: mongo-express:0.54.0
container_name: altzone_panel_dev
depends_on:
- db_dev
networks:
- backend
- db
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=rootUser
- ME_CONFIG_MONGODB_ADMINPASSWORD=superSecretPassword
- ME_CONFIG_MONGODB_SERVER=altzone_db_dev
- 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_dev:
build:
dockerfile: webgl.Dockerfile
container_name: altzone_proxy_dev
depends_on:
- panel_dev
#- api_dev
ports:
- 80:80
networks:
- backend
volumes:
- ./webgl_nginx.conf:/etc/nginx/nginx.conf:ro
- ./public:/usr/local/nginx/public
- ./webgl_build_brotli:/usr/local/nginx/game
networks:
backend:
name: altzone_backend_dev
db:
name: altzone_db_dev
volumes:
altzone_db_dev:
node_modules: