mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
Cleaned docker compose setup
This commit is contained in:
@@ -8,7 +8,8 @@ services:
|
||||
ports:
|
||||
- "3000:443"
|
||||
volumes:
|
||||
- ./proxy/ssl:/etc/nginx/ssl:ro
|
||||
# reusing the ssl files from the backend
|
||||
- ./traque-back/ssl:/etc/nginx/ssl:ro
|
||||
restart: always
|
||||
|
||||
back:
|
||||
@@ -16,3 +17,10 @@ services:
|
||||
ports:
|
||||
- "3001:3001"
|
||||
restart: always
|
||||
environment:
|
||||
ADMIN_PASSWORD: 'traquebdsbanger'
|
||||
HOST: '0.0.0.0'
|
||||
PORT: 3001
|
||||
#Those files need to exist in traque-back/ssl for https to work
|
||||
SSL_KEY: "ssl/privkey.pem"
|
||||
SSL_CERT: "ssl/cert.pem"
|
||||
1
proxy/.gitignore
vendored
1
proxy/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
ssl/
|
||||
1
traque-back/.gitignore
vendored
1
traque-back/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
ssl/*
|
||||
uploads/*
|
||||
#https dev certificates
|
||||
*.pem
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN npm install
|
||||
COPY . .
|
||||
|
||||
# Expose application port
|
||||
EXPOSE 3000
|
||||
EXPOSE 3001
|
||||
|
||||
# Start the application
|
||||
CMD npm start
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
ADMIN_PASSWORD = 'admin password here'
|
||||
HOST = 'traque.rezel.net'
|
||||
PORT = 3001
|
||||
SSL_KEY = "../proxy/ssl/privkey.pem"
|
||||
SSL_CERT = "../proxy/ssl/cert.pem"
|
||||
SSL_KEY = "ssl/privkey.pem"
|
||||
SSL_CERT = "ssl/cert.pem"
|
||||
```
|
||||
# Run dev version
|
||||
First install the dependencies
|
||||
|
||||
Reference in New Issue
Block a user