-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (66 loc) · 1.75 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
version: "3.8"
services:
influxdb:
image: influxdb:1.8.10-alpine # Use a Fixed influxDB version.
container_name: influxdb
# Uncomment for development
ports:
- "8086:8086" # Expose InfluxDB on localhost:8086 for local access
volumes:
- ${INFLUXDB_FOLDER}/db:/var/lib/influxdb # Persist data
- ./influxdb_config/influxdb.conf:/etc/influxdb/influxdb.conf:ro # Persist data
networks:
- cozie-network
redis:
image: "redis:alpine"
networks:
- cozie-network
nginx:
build:
context: ./nginx
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ${CERTIFICATE_FOLDER}:/ssl:ro
depends_on:
- cozie-app
networks:
- cozie-network
celery_worker:
build:
context: ./queue_broker
environment:
INFLUXDB_NAME: ${INFLUXDB_NAME}
INFLUXDB_ORG: ${INFLUXDB_ORG}
INFLUXDB_USER: ${INFLUXDB_USER}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
depends_on:
- redis
networks:
- cozie-network
cozie-app:
build:
context: ./fastapi_server
environment:
DOWNLOAD_FOLDER: /downloads
INFLUXDB_NAME: ${INFLUXDB_NAME}
INFLUXDB_USER: ${INFLUXDB_USER}
INFLUXDB_ORG: ${INFLUXDB_ORG}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
ONESIGNAL_TOKEN: ${ONESIGNAL_TOKEN}
ONESIGNAL_APP_ID: ${ONESIGNAL_APP_ID}
USER_WRITE_KEY: ${USER_WRITE_KEY}
USER_READ_KEY: ${USER_READ_KEY}
RESEARCHER_KEY: ${RESEARCHER_KEY}
networks:
- cozie-network
depends_on:
- influxdb
- celery_worker
volumes:
# Mount host folder for the downloads into the container.
- ${DOWNLOAD_FOLDER}:/downloads
networks:
cozie-network: