-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
102 lines (96 loc) · 2.29 KB
/
docker-compose.dev.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
92
93
94
95
96
97
98
99
100
101
102
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
pgadmin:
container_name: bemore-pgadmin
image: dpage/pgadmin4
ports:
- "8089:5050"
depends_on:
- db
env_file:
- .env
environment:
PGADMIN_CONFIG_SERVER_MODE: "False"
networks:
- default
queue:
container_name: bemore-queue
image: rabbitmq:3-management
# 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
ports:
- "15672:15672"
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-true}
volumes:
- ./backend/app:/app
celeryworker:
tty: true
container_name: bemore-celeryworker
image: "${DOCKER_IMAGE_CELERYWORKER?Variable not set}:${TAG-latest}"
depends_on:
- db
- queue
env_file:
- .env
volumes:
- ./backend/app:/app
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-true}
celerybeat:
tty: true
container_name: bemore-celerybeat
image: "${DOCKER_IMAGE_CELERYBEAT?Variable not set}:${TAG-latest}"
depends_on:
- db
- queue
env_file:
- .env
volumes:
- ./backend/app:/app
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-true}
command: celery -A app.worker beat -l INFO
volumes:
app-db-data: