-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
89 lines (88 loc) · 2.13 KB
/
docker-compose.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.5"
services:
directus:
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
image: directus/directus:v9.0.0-rc.69
restart: unless-stopped
networks:
- db_network
- external_network
ports:
- "172.17.0.1:${DIRECTUS_API_LISTEN}:8055"
environment:
PUBLIC_URL: "${DIRECTUS_PUBLIC_URL}"
KEY: "${DIRECTUS_KEY}"
SECRET: "${DIRECTUS_SECRET}"
DB_CLIENT: 'pg'
DB_HOST: "${DIRECTUS_DATABASE_HOST}"
DB_PORT: "${DIRECTUS_DATABASE_PORT}"
DB_DATABASE: "${DIRECTUS_DATABASE_NAME}"
DB_USER: "${DIRECTUS_DATABASE_USERNAME}"
DB_PASSWORD: "${DIRECTUS_DATABASE_PASSWORD}"
EMAIL_FROM: "${SMTP_FROM}"
EMAIL_TRANSPORT: 'smtp'
EMAIL_SMTP_HOST: "${SMTP_HOST}"
EMAIL_SMTP_PORT: '465'
EMAIL_SMTP_USER: "${SMTP_USER}"
EMAIL_SMTP_PASSWORD: "${SMTP_PASSWORD}"
EMAIL_SMTP_SECURE: 'true'
logging:
driver: "json-file"
options:
max-file: "${LOG_MAX_FILE}"
max-size: "${LOG_MAX_SIZE}"
penhas_api:
image: azminas/penhas_api
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.50'
memory: 800M
ports:
- "172.17.0.1:${PENHAS_API_LISTEN}:8080"
environment:
REDIS_SERVER: "redis:6379"
REDIS_NS: ""
volumes:
- ../data/:/data/
- ./api/:/src/
networks:
- external_network
- db_network
- cache
logging:
driver: "json-file"
options:
max-file: "${LOG_MAX_FILE}"
max-size: "${LOG_MAX_SIZE}"
redis:
container_name: penhas_redis
restart: unless-stopped
image: docker.io/bitnami/redis:6.2
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PASSWORD=""
networks:
- cache
volumes:
- ${REDIS_STORAGE}:/bitnami/redis/data
logging:
driver: "json-file"
options:
max-file: "${LOG_MAX_FILE}"
max-size: "${LOG_MAX_SIZE}"
networks:
external_network:
cache:
db_network:
name: penhas_db_pg_network