-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.36 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
version: '3.7'
services:
php-cli:
build: docker
container_name: 'php'
volumes:
- ./:/app
working_dir: /app
postgres:
image: postgres:15
ports:
- 15432:5432
container_name: 'postgresql'
working_dir: /app
restart: always
environment:
POSTGRES_DB: 'twitter'
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
volumes:
- dump:/app/dump
- postgresql:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management
working_dir: /app
hostname: rabbit-mq
container_name: 'rabbit-mq'
ports:
- 15672:15672
- 5672:5672
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
graphite:
image: graphiteapp/graphite-statsd
container_name: 'graphite'
restart: always
ports:
- 8000:80
- 2003:2003
- 2004:2004
- 2023:2023
- 2024:2024
- 8125:8125/udp
- 8126:8126
grafana:
image: grafana/grafana
container_name: 'grafana'
restart: always
ports:
- 3000:3000
supervisor:
build: docker/supervisor
container_name: 'supervisor'
volumes:
- ./:/app
- ./docker/supervisor/supervisord.conf:/etc/supervisor/supervisord.conf
working_dir: /app
command: ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
volumes:
dump:
postgresql: