-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
43 lines (41 loc) · 1 KB
/
docker-compose-local.yml
File metadata and controls
43 lines (41 loc) · 1 KB
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
services:
nginx:
image: nginx:1.28-alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
environment:
- TZ=Asia/Seoul
depends_on:
- spring-app
mariadb:
image: mariadb:11.8
container_name: mariadb
ports:
- "127.0.0.1:3306:3306"
environment:
- TZ=Asia/Seoul
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./mariadb/data:/var/lib/mysql
spring-app:
build: .
container_name: inchelin-app
ports:
- "127.0.0.1:8080:8080"
environment:
- TZ=Asia/Seoul
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_URL=${DB_URL}
- AWS_ACCESS_KEY=${AWS_ACCESS_KEY}
- AWS_SECRET_KEY=${AWS_SECRET_KEY}
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
- CONTEXT_PATH=${CONTEXT_PATH}
depends_on:
- mariadb