This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
81 lines (76 loc) · 1.53 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
django:
image: virtual-judge:dev
build:
context: .
dockerfile: docker/django/Dockerfile
target: development-build
args:
- DJANGO_ENV=development
- UID=${UID:-1000}
- GID=${GID:-1000}
cache_from:
- "virtual-judge:dev"
- "virtual-judge:latest"
- "*"
volumes:
- .:/app
ports:
- 8000:8000
networks:
- database
- message-broker
env_file:
- config/.env
depends_on:
- postgres
- rabbitmq
- celery
command: python -Wd manage.py runserver 0.0.0.0:8000
celery:
image: virtual-judge:dev
build:
context: .
dockerfile: docker/django/Dockerfile
target: development-build
args:
- DJANGO_ENV=development
- UID=${UID:-1000}
- GID=${GID:-1000}
cache_from:
- "virtual-judge:dev"
- "virtual-judge:latest"
- "*"
volumes:
- .:/app
networks:
- database
- message-broker
env_file:
- config/.env
depends_on:
- postgres
command: celery -A server worker -l INFO
postgres:
image: postgres:16.0-alpine
volumes:
- data:/var/lib/postgresql/data
networks:
- database
env_file:
- config/.env
restart: unless-stopped
rabbitmq:
image: rabbitmq:3.12.9-management-alpine
ports:
- 5672:5672
- 15672:15672
networks:
- message-broker
env_file:
- config/.env
volumes:
data:
networks:
database:
message-broker: