-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
71 lines (68 loc) · 1.67 KB
/
docker-compose-prod.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
63
64
65
66
67
68
69
70
71
version: '3'
services:
trading-bot-am:
container_name: trading-bot-am
image: registry.digitalocean.com/maxdata/trading-bot-am:latest
ports:
- ${PORT_APP}:${PORT_APP}
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- VIRTUAL_PORT=${PORT_APP}
# env_file:
# - .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: 400m
max-file: "3"
depends_on:
- redis
volumes:
- ./.env:/app/.env
- ./.cache:/app/.cache
command: npm run start:prod-app
trading-bot-am-api:
container_name: trading-bot-am-api
image: registry.digitalocean.com/maxdata/trading-bot-am:latest
ports:
- ${PORT_API}:${PORT_API}
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- VIRTUAL_PORT=${PORT_API}
# env_file:
# - .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: 400m
max-file: "3"
depends_on:
- redis
volumes:
- ./.env:/app/.env
command: npm run start:prod-api
redis:
image: redis:alpine
container_name: redis
env_file:
- .env
command: redis-server --appendonly yes --replica-read-only no --bind redis --port 6379 --requirepass ${REDIS_PASSWORD}
restart: always
ports:
# for no reason this don't work if i change port
- 6380:6379
volumes:
- redis:/data
volumes:
redis:
driver: local
networks:
default:
external:
name: ${NETWORK:-proxy}