-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
67 lines (67 loc) · 1.89 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
version: '3'
services:
db:
# restart: always
image: postgres:13-alpine
ports:
# Map postgresql port for easy PyCharm integration.
# Make sure no postgres process on the host is already using the port.
- 5432:5432
volumes:
- dbdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DB
rabbit:
# restart: always
image: rabbitmq:3.9-alpine
qxsms:
# restart: always
image: qxsms:local
user: "CHANGE_ME:CHANGE_ME" # TODO: Change this to your user and group id
build:
context: .
dockerfile: Dockerfile.dev
environment:
- QXSMS_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER
- POSTGRES_DB
- QXSMS_DEBUG=true
- PYTHONUNBUFFERED=1
env_file:
- .env
ports:
- 8000:8000
entrypoint:
- ./entrypoint.dev.sh
volumes:
- .:/qxsms
depends_on:
- db
- rabbit
worker:
# restart: always
image: qxsms:local
user: "CHANGE_ME:CHANGE_ME" # TODO: Change this to your user and group id
environment:
- QXSMS_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER
- POSTGRES_DB
- QXSMS_DEBUG=true
env_file:
- .env
command: sh -c "python manage.py compilemessages; wait-for-it -t 60 --service rabbit:5672 -- celery -A qxsms worker -l INFO --uid=nobody --gid=nogroup"
volumes:
- .:/qxsms
depends_on:
- db
- rabbit
docs:
image: squidfunk/mkdocs-material:9
ports:
- 8888:8000
volumes:
- ./docs/user:/docs
volumes:
dbdata: