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,11 +8,19 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3000:443"
|
- "3000:443"
|
||||||
volumes:
|
volumes:
|
||||||
- ./proxy/ssl:/etc/nginx/ssl:ro
|
# reusing the ssl files from the backend
|
||||||
|
- ./traque-back/ssl:/etc/nginx/ssl:ro
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
back:
|
back:
|
||||||
build: ./traque-back
|
build: ./traque-back
|
||||||
ports:
|
ports:
|
||||||
- "3001:3001"
|
- "3001:3001"
|
||||||
restart: always
|
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/*
|
uploads/*
|
||||||
#https dev certificates
|
#https dev certificates
|
||||||
*.pem
|
*.pem
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ RUN npm install
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose application port
|
# Expose application port
|
||||||
EXPOSE 3000
|
EXPOSE 3001
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
CMD npm start
|
CMD npm start
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
ADMIN_PASSWORD = 'admin password here'
|
ADMIN_PASSWORD = 'admin password here'
|
||||||
HOST = 'traque.rezel.net'
|
HOST = 'traque.rezel.net'
|
||||||
PORT = 3001
|
PORT = 3001
|
||||||
SSL_KEY = "../proxy/ssl/privkey.pem"
|
SSL_KEY = "ssl/privkey.pem"
|
||||||
SSL_CERT = "../proxy/ssl/cert.pem"
|
SSL_CERT = "ssl/cert.pem"
|
||||||
```
|
```
|
||||||
# Run dev version
|
# Run dev version
|
||||||
First install the dependencies
|
First install the dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user