-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (88 loc) · 2.24 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
version: "3"
services:
water_nginx:
container_name: "water_nginx"
restart: unless-stopped
build:
context: .
dockerfile: ./.docker/nginx/Dockerfile
ports:
- 80:80
networks:
- internal
volumes:
- ./:/var/www/water/
- ./.docker/logs/nginx:/var/log/nginx/
water_mariadb:
container_name: "water_mariadb"
image: mariadb:11.0.2
volumes:
- ./.docker/database/${DB_NAME}:/var/lib/mysql/${DB_NAME}
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD}
MARIADB_PASSWORD: ${DB_PASSWORD}
MARIADB_USER: ${DB_USERNAME}
networks:
- internal
water_redis:
container_name: "water_redis"
image: redis:latest
command: redis-server --requirepass ${CACHE_PASS}
volumes:
- ./.docker/cache:/var/lib/redis
- ./.docker/redis:/usr/local/etc/redis/redis.conf
ports:
- ${CACHE_PORT}:6379
networks:
- internal
water_redis-gui:
container_name: "water_redis-gui"
image: rediscommander/redis-commander:latest
environment:
- CACHE_HOSTS=local:${CACHE_HOST}:${CACHE_PORT}:${CACHE_DB}:${CACHE_PASS}
- HTTP_USER=${CACHE_GUI_USER}
- HTTP_PASSWORD=${CACHE_GUI_PASS}
ports:
- 8081:8081
networks:
- internal
depends_on:
- water_redis
water_rabbitmq:
image: rabbitmq:management
container_name: "water_rabbitmq"
volumes:
- ./.docker/queue:/var/lib/rabbitmq
- ./.docker/rabbitmq/rabbitmq.conf:/etc/rabbitmq/conf.d/10-defaults.conf
- ./.docker/logs/rabbitmq:/var/log/rabbitmq/
environment:
- RABBITMQ_DEFAULT_USER=${QUEUE_USER}
- RABBITMQ_DEFAULT_PASS=${QUEUE_PASS}
- RABBITMQ_ERLANG_COOKIE=${QUEUE_COOKIE}
ports:
- "5672:5672"
- "15672:15672"
networks:
- internal
water_php82:
container_name: "water_php82"
restart: unless-stopped
build:
context: .
dockerfile: "./.docker/php/Dockerfile"
volumes:
- ./:/var/www/water/
networks:
- internal
depends_on:
- water_nginx
- water_mariadb
- water_redis
- water_rabbitmq
networks:
internal:
driver: bridge