Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run MySQL in user space #68

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions server/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

all : build-planutils-image build-start

build-planutils-image:
docker build -t paas:latest .

build-start: # install and start
docker compose --compatibility up -d --build
db-data:
mkdir -p db_data

build-start: db-data
CURRENT_USER_ID="$(shell id -u)" CURRENT_GROUP_ID="$(shell id -g)" docker compose --compatibility up -d --build
3 changes: 1 addition & 2 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
frontend:
privileged: true
build:
context: ./frontend
dockerfile: Dockerfile
Expand All @@ -11,7 +10,6 @@ services:
# volumes:
# - /etc/letsencrypt:/etc/letsencrypt
web:
privileged: true
build:
context: ./api
dockerfile: Dockerfile
Expand Down Expand Up @@ -75,3 +73,4 @@ services:
volumes:
- ./init:/docker-entrypoint-initdb.d
- ./db_data:/var/lib/mysql
user: ${CURRENT_USER_ID:-1000}:${CURRENT_GROUP_ID:-1000}