Skip to content

Commit

Permalink
update : volume bind mode , Dir chage owner
Browse files Browse the repository at this point in the history
  • Loading branch information
heedaeshin committed Aug 21, 2024
1 parent a5d1e29 commit 6c48206
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
services:
# chown vomlume bind mode
init-chown-volumes:
image: busybox
command: ["sh", "-c", "chown -R ${UID:-0}:${GID:-0} /app/log"]
volumes:
- ./log:/app/log/
user: root
env_file:
- .env
init: true
# service app
app:
image: m-cmp/data-manager:latest
container_name: mcmp-dm-web
depends_on:
- init-chown-volumes
build:
context: .
dockerfile: Dockerfile
Expand All @@ -20,6 +31,7 @@ services:
- ./log:/app/log/
env_file:
- .env

##################
## OPTIONAL ##
##################
Expand Down

0 comments on commit 6c48206

Please sign in to comment.