This repository was archived by the owner on Feb 14, 2023. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
113 lines (103 loc) · 2.39 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
113 lines (103 loc) · 2.39 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
volumes:
- ./app/watchtower:/watchtower/app/watchtower
- ~/.certs/github/bot_key.pem:/key.pem
ports:
- 8000:8000
command: ['bash', '-c', 'gunicorn --bind :8000 --workers 4 --reload wsgi:application']
depends_on:
- database
networks:
- watchtower_network
test:
build:
context: .
dockerfile: Dockerfile.pytest
profiles: ["test"]
initializer:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
volumes:
- ./app/watchtower:/watchtower/app/watchtower
- ~/.certs/github/bot_key.pem:/key.pem
command: ['bash', '-c', 'python3 manage.py migrate && python3 manage.py runscript initializer']
depends_on:
- database
networks:
- watchtower_network
database:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_SERVER=database
- POSTGRES_PORT=5432
- POSTGRES_DB=watchtower
ports:
- 5432:5432
networks:
- watchtower_network
smee:
image: deltaprojects/smee-client
command: ["-u", "https://smee.io/wjfg5GJdRT6xc", "-t", "http://app:8000/webhook/"]
networks:
- watchtower_network
logging:
driver: none
read_only: true
rabbit:
build:
context: Rabbit
dockerfile: Dockerfile.rabbit.local
hostname: rabbit
volumes:
- rabbitmq:/var/lib/rabbitmq
networks:
- watchtower_network
flower:
image: mher/flower:latest
environment:
- CELERY_BROKER_URL=amqp://admin:bigpassword@rabbit:5672//
- FLOWER_PORT=5555
- FLOWER_PURGE_OFFLINE_WORKERS=10
read_only: true
ports:
- 5555:5555
depends_on:
- rabbit
profiles:
- "debug"
networks:
- watchtower_network
celery_worker:
build:
context: .
dockerfile: Dockerfile
command: celery -A watchtower_service worker -l INFO --uid 1
env_file:
- .env
volumes:
- ./app/watchtower:/watchtower/app/watchtower
- ~/.certs/github/bot_key.pem:/key.pem
depends_on:
- rabbit
- database
networks:
- watchtower_network
volumes:
postgres_data:
rabbitmq:
networks:
watchtower_network: