Skip to content

Commit

Permalink
Use .env values for UID and GID for app/dev services
Browse files Browse the repository at this point in the history
These have to be specified for each service for Docker Compose to pass
your .env values as build args.
  • Loading branch information
botimer committed Nov 6, 2023
1 parent 7c1010d commit 4d0b515
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:
context: ./
dockerfile: ./lauth/Dockerfile
target: development
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- "2300:2300"
depends_on:
Expand All @@ -18,6 +21,9 @@ services:
context: ./
dockerfile: ./lauth/Dockerfile
target: development
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
volumes:
- ./lauth:/lauth/lauth
command: ["rspec"]
Expand Down

0 comments on commit 4d0b515

Please sign in to comment.