-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.54 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
version: "3"
services:
api:
build: ./api
ports:
- "5000:5000"
volumes:
- "./api:/api"
- "./crypto/signer:/crypto/signer"
# - "./api/data/api.log:/var/log/api.log"
command: python3 api.py &>&1
env_file:
- ./.env
app:
build: ./app
working_dir: /app
volumes:
- "./app/:/app/"
- "./crypto/sender/pkg:/app/public/static"
- "./crypto/sender/pkg:/crypto/sender/pkg"
command: sh -c 'yarn install && yarn serve'
proxy:
build:
context: .
dockerfile: ./proxy/Dockerfile
args:
- INCUBATOR_PASS=${INCUBATOR_PASS}
ports:
- "80:80"
- "443:443"
volumes:
- "./proxy/${SERV_ENV:-dev}.conf:/root/default.conf.template"
- "./data/certbot/conf:/etc/letsencrypt"
- "./data/certbot/www:/var/www/certbot"
links:
- app
- api
env_file:
- ./.env
command: sh -c "envsubst '$$DEPLOY_HOST' < /root/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
certbot:
image: certbot/certbot
profiles:
# Default to ignore this service on `up`.
# You can renew certificate with: `docker-compose up certbot`
- cert
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
command: renew