-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
38 lines (36 loc) · 1.12 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
38 lines (36 loc) · 1.12 KB
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
# ======================================[STEP-0]============================================
# docker compose config
networks:
equynhon-network:
driver: bridge
secrets:
# ===================[SYSTEM]===================
# System ROOT CA
# https://stackoverflow.com/questions/47434877/how-to-generate-keystore-and-truststore
eqn-ssl-certificate:
file: ../.certs/keystore.crt
eqn-ssl-private-key:
file: ../.certs/keystore.key
services:
# ======================================[STEP-2]============================================
# docker compose -f docker-compose.dev.yml up --build -d equynhon
equynhon:
container_name: eqn-service
build:
context: .
dockerfile: Dockerfile.dev
restart: unless-stopped
secrets:
- eqn-ssl-certificate
- eqn-ssl-private-key
networks:
- equynhon-network
ports:
- "3000:3000"
env_file:
- "../.env"
environment:
# Truststore (CA Root)
EQN_CERT_FILE: /run/secrets/eqn-ssl-certificate
EQN_KEY_FILE: /run/secrets/eqn-ssl-private-key
NODE_ENV: production