-
-
Notifications
You must be signed in to change notification settings - Fork 528
/
docker-compose.yaml
72 lines (67 loc) · 1.85 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
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
# This compose setup is only meant for local development of Misago itself
# This is not for running your Misago site in docker
version: "3.0"
services:
postgres:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_USER=misago
- POSTGRES_PASSWORD=misago
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis:6
restart: unless-stopped
misago:
build: .
command: python manage.py runserver 0.0.0.0:8000
restart: unless-stopped
environment:
# Postgres
- POSTGRES_HOST=postgres
- POSTGRES_DB=misago
- POSTGRES_USER=misago
- POSTGRES_PASSWORD=misago
- POSTGRES_TEST_DB=misago_test
# Superuser
- SUPERUSER_USERNAME=Admin
- SUPERUSER_PASSWORD=password
ports:
# Map port 8000 in the container to port 8000 on the host
# This way we can access the forum through http://localhost:8000
- "${MISAGO_DEVSERVER_PORT:-8000}:8000"
depends_on:
- postgres
- redis
tty: true
volumes:
# Map the entire project into the container
# This makes sure files in the container update on the fly as we were working locally
- .:/app:Z
celery-worker:
build: .
command: celery -A devproject worker --loglevel=info
restart: unless-stopped
environment:
# Postgres
- POSTGRES_HOST=postgres
- POSTGRES_DB=misago
- POSTGRES_USER=misago
- POSTGRES_PASSWORD=misago
- POSTGRES_TEST_DB=misago_test
depends_on:
- postgres
- redis
tty: true
volumes:
# Map the entire project into the container
# This makes sure files in the container update on the fly as we were working locally
- .:/app:Z
mailpit:
image: axllent/mailpit
ports:
- 1025:1025
- 8025:8025
restart: unless-stopped