-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.18 KB
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
version: "3.1"
services:
nginx:
container_name: nginx
build: ./nginx
ports:
- 80:80
depends_on:
- "web"
volumes:
- ./media/:/superb/media/
- ./static/:/superb/static/
postgres:
container_name: postgres
image: postgres:15-alpine
restart: always
ports:
- 5432:5432
volumes:
- ./postgresdb:/var/lib/postgresql/data
env_file:
- .env
environment:
- POSTGRES_DB=postgresdb
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=12345
- VIRTUAL_HOST=postgresdb
- VIRTUAL_PORT=5432
redisdb:
container_name: redisdb
image: redis
ports:
- 6379:6379
web:
container_name: web
build: .
volumes:
- ./media:/superb/media
ports:
- 8000:8000
command: gunicorn SuperB.wsgi:application --bind 0.0.0.0:8000
depends_on:
- "postgres"
env_file: .env
celery:
container_name: celery
build:
context: .
dockerfile: Dockerfile
volumes:
- ./media:/superb/media
command: celery -A SuperB worker --beat --scheduler django --loglevel=info
depends_on:
- "postgres"
- "redisdb"
env_file: .env