-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
76 lines (66 loc) · 1.35 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
73
74
75
76
version: "3.7"
services:
db:
build: ./postgres
container_name: tts_db
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- postgres/.env.dev
ports:
- 5432:5432
ulimits:
nofile:
soft: 262144
hard: 262144
pgadmin:
build:
context: ./pgadmin
container_name: tts_pgadmin
env_file:
- pgadmin/.env.dev
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- 4000:80
nginx:
image: nginx:1-alpine
container_name: tts_nginx
ports:
- 443:443
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/certs/:/etc/nginx/certs/
django:
build: ./django
container_name: tts_django
env_file:
- django/.env.dev
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
volumes:
- ./django/:/usr/src/django/
ports:
- 8100:8000
fetcher:
build: ./fetcher
container_name: tts_fetcher
volumes:
- ./fetcher/:/fetcher/
redis_service:
image: redis:6.2-bullseye
container_name: tts_redis
ports:
- "6379:6379"
mailpit:
image: axllent/mailpit
container_name: tts-mailpit
ports:
- "1025:1025"
- "8025:8025"
networks:
default:
name: tts-docker-network
volumes:
postgres_data:
name: tts_postgres_data
pgadmin_data: