Skip to content

Commit

Permalink
feat: ketinggalan
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jun 24, 2024
1 parent ec4872d commit 314b0b3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: "3.8"
services:
db:
image: mysql:latest
cap_add:
- SYS_NICE
restart: always
environment:
- MYSQL_DATABASE=sora
- MYSQL_USER=tingyun
- MYSQL_PASSWORD=majesticfoxian
- MYSQL_ROOT_PASSWORD=sillylookingcat
ports:
- '3306:3306'
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
- db:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql

web:
container_name: sora_web
image: rmecha/sora-baseline-web:main
restart: always
depends_on:
db:
condition: service_healthy
environment:
DB_HOST: db
DB_NAME: sora
DB_USERNAME: tingyun
DB_PASSWORD: majesticfoxian
AUTH_SECRET: sdfjsklfjiuhr83uiwrew89323oriewf
ports:
- 0.0.0.0:3000:3000
volumes:
- web_uploads:/app/apps/web/public/uploads

volumes:
db:
web_uploads:

0 comments on commit 314b0b3

Please sign in to comment.