forked from 2120865/chat_system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 877 Bytes
/
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
version: "3"
networks:
chat-net:
driver: bridge
services:
web:
build:
context: "."
dockerfile: "Dockerfile"
image: "webimage"
container_name: "webcontainer"
volumes:
- .:/var/www/html/
depends_on:
- db
networks:
- chat-net
ports:
- "127.0.0.1:81:80"
db:
image: mysql:5.7
container_name: dbcontainer
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: chat_system
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- chat-net
ports:
- "127.0.0.1:3307:3306"
privileged: true
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmincontainer
links:
- db:db
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: root
networks:
- chat-net
ports:
- "127.0.0.1:82:80"