-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (57 loc) · 1.16 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
version: '3.8'
services:
meeting_application:
build:
context: ./
dockerfile: Dockerfile
container_name: meetingapplication
depends_on:
- redis_server
- mysql_server
- nginx
ports:
- "8080:8080"
restart: always
links:
- mysql_server
networks:
- appnet
redis_server:
image: "docker.io/redis"
container_name: redisserver
restart: always
ports:
- 6379:6379
networks:
- appnet
mysql_server:
container_name: mysqlserver
build:
context: ./
dockerfile: DockerfileSql
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
restart: always
networks:
- appnet
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
nginx:
container_name: nginx
build:
context: ./
dockerfile: DockerfileNginx
volumes:
- /ngxin/conf.d:/etc/nginx/conf.d
- /ngxin/log:/var/log/nginx
- /ngxin//www:/var/www
- /etc/letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443
networks:
- appnet
networks:
appnet:
driver: bridge