-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
61 lines (57 loc) · 1.41 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
version: "3.3"
services:
db:
container_name: bemore-db
image: postgres:16
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- default
queue:
container_name: bemore-queue
image: rabbitmq:3
# Using the below image instead is required to enable the "Broker" tab in the flower UI:
# image: rabbitmq:3-management
#
# You also have to change the flower command
backend:
tty: true
container_name: bemore-backend
image: "${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}"
depends_on:
- db
env_file:
- .env
environment:
# Allow explicit env var override for tests
- SMTP_HOST=${SMTP_HOST}
ports:
- "8000:8000"
build:
context: ./backend
dockerfile: backend.dockerfile
args:
INSTALL_DEV: ${INSTALL_DEV-false}
celeryworker:
tty: true
container_name: bemore-celeryworker
image: "${DOCKER_IMAGE_CELERYWORKER?Variable not set}:${TAG-latest}"
depends_on:
- db
- queue
env_file:
- .env
environment:
# Allow explicit env var override for tests
- SMTP_HOST=${SMTP_HOST?Variable not set}
build:
context: ./backend
dockerfile: celeryworker.dockerfile
args:
INSTALL_DEV: ${INSTALL_DEV-false}
volumes:
app-db-data: