-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
docker-compose.example.yml
64 lines (57 loc) · 2.15 KB
/
docker-compose.example.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
version: '3.7'
services:
reactmap:
image: ghcr.io/watwowmap/reactmap:main
container_name: reactmap
command: sh -c "yarn start"
restart: unless-stopped
environment:
# All database values are ignored if you are using a `local.json` file!
# Your Scanner Database
SCANNER_DB_HOST: 127.0.0.1
SCANNER_DB_PORT: 3306
SCANNER_DB_USERNAME: scanner_username
SCANNER_DB_PASSWORD: scanner_user_pw
SCANNER_DB_NAME: scanner_db
# Your ReactMap Database
REACT_MAP_DB_HOST: 127.0.0.1
REACT_MAP_DB_PORT: 3306
REACT_MAP_DB_USERNAME: react_map_username
REACT_MAP_DB_PASSWORD: react_map_user_pw
REACT_MAP_DB_NAME: react_map_db
# Your Manual Database (Optional - Nests & Portals)
# MANUAL_DB_HOST: 127.0.0.1
# MANUAL_DB_PORT: 3306
# MANUAL_DB_USERNAME: manual_username
# MANUAL_DB_PASSWORD: manual_user_pw
# MANUAL_DB_NAME: manual_db
# Other config values - the below env vars will override anything, including `local.json`
# More config values you can add:
# https://github.com/WatWowMap/ReactMap/blob/main/server/src/configs/custom-environment-variables.json
# Config wiki page:
# https://github.com/WatWowMap/ReactMap/wiki/04.-Full-Config-Explanation
# Devs recommened that you use a `local.json` config file though instead of env variables!
MAP_GENERAL_TITLE: ReactMap
MAP_GENERAL_START_LAT: 0
MAP_GENERAL_START_LON: 0
# ARRAY_VALUE_EXAMPLE: "[3, 4, 5]"
volumes:
- ./server/.cache:/home/node/server/.cache
- ./server/src/configs:/home/node/server/src/configs
# Optional
- ./public/favicon/favicon.ico:/home/node/public/favicon/favicon.ico
security_opt:
# https://nodramadevops.com/2019/06/running-docker-application-containers-more-securely/
- no-new-privileges:true
ports:
- '9090:8080' # change left one for external port
# nginx:
# image: nginx
# container_name: nginx
# depends_on:
# - reactmap
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./server/src/configs/nginx.conf:/etc/nginx/conf.d/default.conf