-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-development.yaml
115 lines (108 loc) · 2.36 KB
/
compose-development.yaml
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
version: '3.4'
services:
app:
container_name: ESS
build:
context: .
dockerfile: Dockerfile-development
args:
- userid=${USER_ID}
- groupid=${GROUP_ID}
env_file:
- .env.development
restart: unless-stopped
ports:
- ${PUBLIC_PORT}:${APP_PORT}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- storage:/var/www/html/storage
depends_on:
- redis
- mariadb
- rabbitmq
networks:
- webserver-network
- mariadb-network
- redis-network
- rabbitmq-network
webserver:
image: nginx:stable-alpine3.17
container_name: webserver
restart: unless-stopped
tty: true
depends_on:
- app
ports:
- "81:80"
- "444:443"
volumes:
- ./:/var/www/html
- .docker/config/development/nginx/conf.d:/etc/nginx/templates
networks:
- webserver-network
adminer:
container_name: adminer
image: adminer:4.8.1
env_file:
- .env.development
restart: unless-stopped
ports:
- ${ADMINER_PUBLIC_PORT}:8080
depends_on:
- mariadb
networks:
- mariadb-network
mariadb:
container_name: mariadb
image: mariadb:10.11.2
env_file:
- .env.development
volumes:
- mariadb-data:/var/lib/mysql
restart: unless-stopped
environment:
MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
networks:
- mariadb-network
redis:
container_name: redis
image: redis:6.0.16
env_file:
- .env.development
volumes:
- redis-data:/data
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD}
networks:
- redis-network
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management-alpine
env_file:
- .env.development
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq-data:/var/lib/rabbitmq/
# - ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
networks:
- rabbitmq-network
volumes:
storage:
mariadb-data:
redis-data:
rabbitmq-data:
networks:
webserver-network:
driver: bridge
mariadb-network:
driver: bridge
redis-network:
driver: bridge
rabbitmq-network:
driver: bridge