-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 899 Bytes
/
docker-compose.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
version: '3.7'
services:
elections-server:
container_name: elections-server
image: elections-server:dev
build: .
ports:
- "8080:8080"
- "8443:8443"
- "5005:5005"
env_file:
- 'docker-compose.env'
elections:
build:
context: src/js/elections
container_name: elections
image: elections:dev
ports:
- "80:80"
- "443:443"
secrets:
- source: nginx-config
target: /etc/nginx/nginx.conf
- source: nginx-crt
target: /etc/ssl/certs/nginx-selfsigned.crt
- source: nginx-key
target: /etc/ssl/private/nginx-selfsigned.key
- source: nginx-dh
target: /etc/ssl/certs/dhparam.pem
secrets:
nginx-config:
file: nginx/nginx.conf
nginx-crt:
file: nginx/nginx-selfsigned.crt
nginx-key:
file: nginx/nginx-selfsigned.key
nginx-dh:
file: nginx/dhparam.pem