-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
91 lines (88 loc) · 2.9 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Attention:
# Use this docker-compose to:
# - Up development environment: docker-compose up
# - Build docker images: docker-compose build
version: '3.6'
services:
database:
image: postgres
ports:
- 5432:5432
networks:
- default
- weni
environment:
- POSTGRES_USER=${POSTGRES_USER:-weni}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-weni}
- POSTGRES_DB=${POSTGRES_DB:-weni}
weni:
image: ${DOCKER_IMAGE_NAME:-ilha/weni}:${TAG:-latest}
build:
context: .
dockerfile: Dockerfile
ports:
- ${ENGINE_PORT:-80}:80
networks:
- default
- weni
environment:
- SECRET_KEY=${SECRET_KEY:-SK}
- DEBUG=${DEBUG:-true}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-*}
- DEFAULT_DATABASE=${DEFAULT_DATABASE:-postgres://weni:weni@database:5432/weni}
- LANGUAGE_CODE=${LANGUAGE_CODE:-en-us}
- TIME_ZONE=${TIME_ZONE:-UTC}
- STATIC_URL=${TIME_ZONE:-/static/}
- CELERY_BROKER_URL=${CELERY_BROKER_URL:-redis://redis:6379/0}
- OIDC_RP_CLIENT_ID=${OIDC_RP_CLIENT_ID}
- OIDC_RP_CLIENT_SECRET=${OIDC_RP_CLIENT_SECRET}
- OIDC_OP_AUTHORIZATION_ENDPOINT=${OIDC_OP_AUTHORIZATION_ENDPOINT}
- OIDC_OP_TOKEN_ENDPOINT=${OIDC_OP_TOKEN_ENDPOINT}
- OIDC_OP_USER_ENDPOINT=${OIDC_OP_USER_ENDPOINT}
- OIDC_OP_JWKS_ENDPOINT=${OIDC_OP_JWKS_ENDPOINT}
- OIDC_RP_SIGN_ALGO=${OIDC_RP_SIGN_ALGO}
- OIDC_OP_LOGOUT_ENDPOINT=${OIDC_OP_LOGOUT_ENDPOINT}
celery:
build:
context: .
dockerfile: Dockerfile
depends_on:
- weni
- redis
- database
networks:
- default
- weni
command: "celery -A weni worker -l info -B"
environment:
- SECRET_KEY=${SECRET_KEY:-SK}
- DEBUG=${DEBUG:-true}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-*}
- DEFAULT_DATABASE=${DEFAULT_DATABASE:-postgres://weni:weni@database:5432/weni}
- LANGUAGE_CODE=${LANGUAGE_CODE:-en-us}
- TIME_ZONE=${TIME_ZONE:-UTC}
- STATIC_URL=${TIME_ZONE:-/static/}
- CELERY_BROKER_URL=${CELERY_BROKER_URL:-redis://redis:6379/0}
- OIDC_RP_CLIENT_ID=${OIDC_RP_CLIENT_ID}
- OIDC_RP_CLIENT_SECRET=${OIDC_RP_CLIENT_SECRET}
- OIDC_OP_AUTHORIZATION_ENDPOINT=${OIDC_OP_AUTHORIZATION_ENDPOINT}
- OIDC_OP_TOKEN_ENDPOINT=${OIDC_OP_TOKEN_ENDPOINT}
- OIDC_OP_USER_ENDPOINT=${OIDC_OP_USER_ENDPOINT}
- OIDC_OP_JWKS_ENDPOINT=${OIDC_OP_JWKS_ENDPOINT}
- OIDC_RP_SIGN_ALGO=${OIDC_RP_SIGN_ALGO}
- OIDC_OP_LOGOUT_ENDPOINT=${OIDC_OP_LOGOUT_ENDPOINT}
redis:
image: redis
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:3.9.7-management
ports:
- "5672:5672" # Port to connect to RabbitMQ
- "15672:15672" # Port to access the RabbitMQ management interface
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
networks:
weni:
external: true