-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
70 lines (69 loc) · 1.48 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
63
64
65
66
67
68
69
70
version: "3.5"
services:
postgres:
image: postgres:alpine
container_name: postgres_zecontinha
restart: always
volumes:
- ./data/db:/var/lib/postgresql/data
env_file:
- ./postgres.env
#environment:
# - POSTGRES_DB
# - POSTGRES_USER
# - POSTGRES_PASSWORD
ports:
- 5432:5432
networks:
- zecontinha_network
app:
build: .
image: zecontinha_base
# RFC 1034/1035 -> No _ on hostname
container_name: zecontinha
entrypoint: ./entrypoint.sh
volumes:
- .:/src/
- /var/logs/zecontinha:/srv/logs
ports:
- "8000:8000"
env_file:
- ./zecontinha.env
#environment:
# - DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
# - SECRET_KEY
# - DATABASE_URL
# - BINANCE_APIKEY
# - BINANCE_SECRETKEY
# - TELEGRAM_API_KEY
# - ENV
# - G_RECAPTCHA_SITE_KEY
# - G_RECAPTCHA_SECRET_KEY
links:
- postgres
depends_on:
- postgres
networks:
- zecontinha_network
cron:
image: zecontinha_base
container_name: cron_zecontinha
restart: unless-stopped
entrypoint: ./entrypoint_cron.sh
volumes:
- .:/src/
env_file:
- ./zecontinha.env
links:
- postgres
depends_on:
- postgres
networks:
- zecontinha_network
deploy:
resources:
limits:
cpus: '0.90'
networks:
zecontinha_network:
name: zecontinha_network