-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·129 lines (120 loc) · 3.71 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '3'
services:
gitlab:
container_name: ${CONTAINER_NAME}_gitlab
image: gitlab/gitlab-ce:latest
restart: always
hostname: gitlab.example.com
ports:
- "10443:443"
- "10080:80"
- "10022:22"
volumes:
- .docker/gitlab/config:/etc/gitlab
- .docker/gitlab/logs/:/var/log/gitlab
- .docker/gitlab/data/:/var/opt/gitlab
apache:
container_name: ${CONTAINER_NAME}_apache
image: httpd:2.4.41
ports:
- ${APACHE_PORT}:80
- 443:443
volumes:
- ./${DIRECTORY_PROJECT}:/var/www/html
- .docker/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf
- .docker/httpd/logs:/var/log/httpd
depends_on:
- php
networks:
- front-network
- back-network
mysql:
image: mysql
command: "--default-authentication-plugin=mysql_native_password"
container_name: ${CONTAINER_NAME}_mysql
volumes:
- .docker/data/db:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
- back-network
php:
build: .docker/php
container_name: ${CONTAINER_NAME}_php
volumes:
- ./${DIRECTORY_PROJECT}:/var/www/html
- .docker/php/php.ini:/usr/local/etc/php/php.ini
environment:
- maildev_host=${CONTAINER_NAME}_maildev
depends_on:
- maildev
- mysql
networks:
- back-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: ${CONTAINER_NAME}_phpmyadmin
environment:
PMA_HOST: mysql
PMA_PORT: ${MYSQL_PORT}
ports:
- ${PHPMYADMIN_PORT}:80
links:
- mysql
networks:
- back-network
maildev:
image: djfarrelly/maildev
container_name: ${CONTAINER_NAME}_maildev
ports:
- ${MAILDEV_PORT}:80
networks:
- back-network
redis:
container_name: ${CONTAINER_NAME}_redis
image: redis:alpine
ports:
- ${REDIS_PORT}:6379
networks:
- back-network
centrifugo:
container_name: ${CONTAINER_NAME}_centrifugo
image: centrifugo/centrifugo
command: centrifugo -c config.yml -w --port=8000 --log_level=debug --debug --insecure --address=0.0.0.0
ports:
- ${CENTRIFUGO_PORT}:8000
volumes:
- ./.docker/centrifugo/config.yml:/centrifugo/config.yml # centrifugo -c config.json -w /opt/centrifugo/web
networks:
- back-network
rabbit:
container_name: ${CONTAINER_NAME}_rabbit
hostname: rabbit
image: rabbitmq:management-alpine
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- ${RABBIT_PORT1}:5672
- ${RABBIT_PORT2}:15672
networks:
- back-network
portainer:
image: portainer/portainer
container_name: ${CONTAINER_NAME}_portainer
restart: always
ports:
- ${PORTAINER_PORT}:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- back-network
networks:
front-network:
driver: bridge
back-network:
driver: bridge