Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dodaucy committed Nov 5, 2023
1 parent ca3f85f commit 82f853c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3'
services:
diary:
build: https://github.com/dodaucy/diary.git
environment:
DATABASE: "mysql://diary:diary@mariadb/diary"
PASSWORD_HASH: ${PASSWORD_HASH:?Password hash not set}
env_file:
- .env
ports:
- $127.0.0.1:${PORT:?Port not set}:8000
depends_on:
- mariadb
restart: always
mariadb:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: diary
MYSQL_USER: diary
MYSQL_PASSWORD: diary
volumes:
- ./data/mariadb:/var/lib/mysql
ports:
- 3306:3306
restart: always

0 comments on commit 82f853c

Please sign in to comment.