-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.test.yml
62 lines (58 loc) · 2.11 KB
/
docker-compose.test.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
# Define RabbitMQ environment variables once at the top level
x-environments: &rabbitmq_client_env
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
RABBITMQ_EXCHANGE_USER_CHATS: ${RABBITMQ_EXCHANGE_USER_CHATS}
RABBITMQ_QUEUE_USER_CHATS: ${RABBITMQ_QUEUE_USER_CHATS}
RABBITMQ_QUEUE_USER_CHAT_REPLIES: ${RABBITMQ_QUEUE_USER_CHAT_REPLIES}
services:
rabbitmq:
image: rabbitmq:management
ports:
- ${RABBITMQ_PORT}:${RABBITMQ_PORT}
- ${RABBITMQ_MANAGEMENT_PORT}:${RABBITMQ_MANAGEMENT_PORT}
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASS}
volumes:
- rabbitmq-data:/var/lib/rabbitmq/mnesia/
postgres:
image: postgres:12-alpine
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASS}
volumes:
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
backend:
image: eu.gcr.io/akvo-lumen/agriconnect/backend:latest
working_dir: /app
environment:
<<: *rabbitmq_client_env
DATABASE_URL: postgresql://akvo:${POSTGRES_PASS}@postgres:${POSTGRES_PORT}/dev
BACKEND_PORT: ${BACKEND_PORT}
JWT_SECRET: ${JWT_SECRET}
WEBDOMAIN: "${WEBDOMAIN}:${FRONTEND_PORT}"
MAGIC_LINK_CHAT_TEMPLATE: ${MAGIC_LINK_CHAT_TEMPLATE}
INITIAL_CHAT_TEMPLATE: ${INITIAL_CHAT_TEMPLATE}
TWILIO_ACCOUNT_SID: ${TWILIO_ACCOUNT_SID}
TWILIO_AUTH_TOKEN: ${TWILIO_AUTH_TOKEN}
TWILIO_WHATSAPP_NUMBER: ${TWILIO_WHATSAPP_NUMBER}
SLACK_BOT_TOKEN: ${SLACK_BOT_TOKEN}
SLACK_SIGNING_SECRET: ${SLACK_SIGNING_SECRET}
BUCKET_NAME: ${BUCKET_NAME}
NEXT_PUBLIC_VAPID_PUBLIC_KEY: ${NEXT_PUBLIC_VAPID_PUBLIC_KEY}
NEXT_PUBLIC_VAPID_PRIVATE_KEY: ${NEXT_PUBLIC_VAPID_PRIVATE_KEY}
command: ["./test.sh"]
volumes:
- ./backend:/app:delegated
- ./setup.cfg:/app/setup.cfg:ro
- ./packages/Akvo_rabbitmq_client:/lib/Akvo_rabbitmq_client:delegated
depends_on:
- postgres
- rabbitmq
volumes:
pg-data:
rabbitmq-data: