-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.42 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "2"
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
acme-companion:
image: nginxproxy/acme-companion
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
client:
image: node
expose:
- 3000
command: "npm run start"
working_dir: "/home/node/app"
volumes:
- "./client:/home/node/app"
environment:
- VIRTUAL_HOST=ec2-52-35-179-192.us-west-2.compute.amazonaws.com
- LETSENCRYPT_HOST=ec2-52-35-179-192.us-west-2.compute.amazonaws.com
- VIRTUAL_PATH=/
env_file:
- ./client/.env
server:
build:
context: ./server
dockerfile: ./Dockerfile
expose:
- 3000
environment:
- VIRTUAL_HOST=ec2-52-35-179-192.us-west-2.compute.amazonaws.com
- LETSENCRYPT_HOST=ec2-52-35-179-192.us-west-2.compute.amazonaws.com
- VIRTUAL_PATH=/api
- MODELICAPATH=/dependencies/ModelicaStandardLibrary:/dependencies/modelica-buildings
command: npm run start
env_file:
- ./server/.env
volumes:
- ./server:/app
volumes:
conf:
vhost:
html:
certs:
acme: