-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dist
88 lines (80 loc) · 2.21 KB
/
docker-compose.yml.dist
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
version: '3'
services:
web:
image: nginx:latest
container_name: web
ports:
- "8080:80"
volumes:
- ./abc_service:/src
- ./nginx/site.conf:/etc/nginx/conf.d/docker-example.conf
networks:
- default_network_name
php:
build: ./php
container_name: php
volumes:
- ./abc_service:/src
- ./php/log.conf:/usr/local/etc/php-fpm.d/zz-log.conf
networks:
- default_network_name
redis:
image: "redis:latest"
container_name: redis
ports:
- "6379"
volumes:
- data-volume:/data
command: redis-server --appendonly yes
networks:
- default_network_name
rabbit:
image: rabbitmq:3-management
container_name: rabbit
hostname: my-rabbitmq
volumes:
- data-volume:/var/lib/rabbitmq/mnesia/rabbit@my-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- default_network_name
elk:
build: ./elk
container_name: elk
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
volumes:
- data-volume:/var/lib/elasticsearch
- ./elk/logstash.conf:/etc/logstash/conf.d/30-output.conf
environment:
ES_JAVA_OPTS: -Xms512m -Xmx512m
KIBANA_START: 1
LOGSTASH_START: 1
ELASTICSEARCH_START: 1
networks:
- default_network_name
postgres:
image: postgres:latest
container_name: postgres
volumes:
- ./postgres/dump-example.sql:/docker-entrypoint-initdb.d/init-db.sql
- data-volume:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: docker
POSTGRES_USER: docker
POSTGRES_HOST: localhost
PGDATA: /var/lib/postgresql/data/db-files/
ports:
- "5432:5432"
networks:
- default_network_name
volumes:
data-volume:
external:
name: actual-name-of-volume
networks:
default_network_name:
driver: bridge