forked from Carbon-Neutral-Project-3rd-Team/carbon-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (32 loc) · 825 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (32 loc) · 825 Bytes
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
services:
carbon-server:
image: 793622242168.dkr.ecr.ap-northeast-2.amazonaws.com/carbon-server:latest
entrypoint: ["java", "-Xmx400M", "-Xms256M", "-XX:+ExitOnOutOfMemoryError", "-jar", "project.jar"]
env_file:
- .env
ports:
- 8080:8080
depends_on:
my-db:
condition: service_healthy
my-db:
image: mysql
command:
- --performance_schema=OFF
- --max_connections=50
environment:
TZ: Asia/Seoul
MYSQL_DATABASE: carbon_be_db
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
ports:
- 3306:3306
healthcheck:
test: [ "CMD", "mysqladmin", "ping" ]
interval: 5s
retries: 10
volumes:
mysql_data: