-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (43 loc) · 952 Bytes
/
docker-compose.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
version: '3'
services:
app:
hostname: app-server
build: ./app
volumes:
- ./app:/app
- socket:/tmp
container_name: 'app-server'
ports:
- '5000:5000'
networks:
- linebot-network
command: uwsgi --ini /app/uwsgi.ini
web:
image: nginx:latest
ports:
- "80:80"
container_name: 'linebot-nginx'
volumes:
- ./web/default.conf:/etc/nginx/conf.d/default.conf
- socket:/tmp
networks:
- linebot-network
mysql-db:
container_name: "mysql-db"
image: mysql:5.7
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
volumes:
- db_volume:/var/lib/mysql
- ./db/initdb.d:/docker-entrypoint-initdb.d
# Set up mysql database name and password
env_file: ./.env
ports:
- 3306:3306
networks:
- linebot-network
networks:
linebot-network:
driver: bridge
volumes:
socket:
db_volume: