-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (65 loc) · 1.55 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
# NOTE: This docker-compose.yml is meant to be deployed from Gitlab CI
#
# Variables will be replaces in CI pipeline with current values.
version: '3.4'
x-defaults: &defaults
restart: unless-stopped
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
depends_on:
- postgres
env_file: .env
volumes:
- transpipe-static:/transpipe/static/
- transpipe-media:/transpipe/media/
services:
postgres:
restart: unless-stopped
image: postgres:13.2
volumes:
- transpipe-postgres:/var/lib/postgresql/data
web:
<<: *defaults
ports:
- '8080:8080'
celery_beat:
<<: *defaults
entrypoint: celery -A pipeline
command: beat --loglevel=INFO
depends_on:
- rabbitmq
- postgres
celery_worker:
<<: *defaults
entrypoint: celery -A pipeline
command: worker --loglevel=INFO --concurrency=2
depends_on:
- rabbitmq
- postgres
rabbitmq:
image: rabbitmq:3.8-management
hostname: rabbitmq
volumes:
- transpipe-rabbitmq-log:/var/log/rabbitmq
- transpipe-rabbitmq-data:/var/lib/rabbitmq
ports:
- '127.0.0.1:5672:5672'
- '127.0.0.1:15672:15672'
environment:
- RABBITMQ_DEFAULT_USER=rabbit
- RABBITMQ_DEFAULT_PASS=rabbit
restart: unless-stopped
volumes:
transpipe-postgres:
external: true
transpipe-media:
external: true
transpipe-static:
driver: local
driver_opts:
type: none
o: bind
device: /var/www/transpipe/static
transpipe-rabbitmq-log:
external: true
transpipe-rabbitmq-data:
external: true