-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
46 lines (42 loc) · 1.19 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
version: "3.9"
services:
api:
image: ghcr.io/noresmhub/ctsm-api:${VERSION:-latest}
restart: unless-stopped
entrypoint: /ctsm-api/docker/entrypoint_api.sh
env_file:
- .env
environment:
- HOST_USER=${HOST_USER}
- HOST_UID=${HOST_UID}
- CELERY_BROKER_URL=amqp://${RABBITMQ_DEFAULT_USER:-admin}:${RABBITMQ_DEFAULT_PASS:-admin}@rabbitmq:5672/
networks:
- default
ports:
- ${PORT:-8000}:8000
volumes:
- ./resources:/ctsm-api/resources
tasks:
image: ghcr.io/noresmhub/ctsm-api:${VERSION:-latest}
restart: unless-stopped
entrypoint: /ctsm-api/docker/entrypoint_tasks.sh
env_file:
- .env
environment:
- HOST_USER=${HOST_USER}
- HOST_UID=${HOST_UID}
- CELERY_BROKER_URL=amqp://${RABBITMQ_DEFAULT_USER:-admin}:${RABBITMQ_DEFAULT_PASS:-admin}@rabbitmq:5672/
networks:
- default
volumes:
- ./resources:/ctsm-api/resources
rabbitmq:
image: rabbitmq:3-management
restart: unless-stopped
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER:-admin}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS:-admin}
networks:
- default
networks:
default: