-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (40 loc) · 1.1 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
version: '3'
services:
database:
platform: linux/x86_64
image: mysql:8.0.27
restart: always
container_name: feelin_db
environment:
- MYSQL_DATABASE=feelin
- MYSQL_ROOT_PASSWORD=feelinuser
- MYSQL_USER=feelin
- MYSQL_PASSWORD=feelinuser
command: [ '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
application:
image: yeonsumia/waffle-music-sns:main
restart: always
container_name: feelin_app
ports:
- "8080:8080"
volumes:
- ./resources:/resources
depends_on:
- database
nginx:
image: nginx
container_name: feelin_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/certificate:/etc/letsencrypt/live/api-feelin.kro.kr
depends_on:
- application
volumes:
mysql-data: