Skip to content

Commit

Permalink
Clean up compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed May 9, 2020
1 parent 4e0605d commit d833a05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This is an example on how to run CSMM with Docker compose.
# This is **not** a production ready deployment template, you must configure a web server, security, ... yourself
version: "3.7"

services:
Expand All @@ -8,22 +10,23 @@ services:
- cache
- db
environment:
NODE_ENV: ${NODE_ENV:-production}
NODE_ENV: ${NODE_ENV:-development}
REDISSTRING: "redis://cache:6379"
DBSTRING: "mysql2://csmm:mysecretpasswordissosecure@db:3306/csmm"
CSMM_HOSTNAME: "https://csmm.example.com"
CSMM_HOSTNAME: "http://localhost:30005"
API_KEY_STEAM: ""
DISCORDBOTTOKEN: ""
DISCORDCLIENTSECRET: ""
DISCORDCLIENTID: ""
CSMM_ADMINS: ""
ports:
- 8000:8000
- 127.0.0.1:30005:8000
restart: unless-stopped
cache:
image: redis
volumes:
- ./redis-data:/data
restart: unless-stopped
db:
image: mariadb
volumes:
Expand All @@ -33,5 +36,4 @@ services:
MYSQL_USER: "csmm"
MYSQL_PASSWORD: "mysecretpasswordissosecure"
MYSQL_RANDOM_ROOT_PASSWORD: "true"
volumes:
db-data:
restart: unless-stopped
2 changes: 1 addition & 1 deletion scripts/healthcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const options = {
host : "localhost",
port : "1337",
timeout : 2000,
path: '/api/stats/fqsfqs'
path: '/api/stats/'
};

const request = http.request(options, (res) => {
Expand Down

0 comments on commit d833a05

Please sign in to comment.