-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
29 lines (29 loc) · 1005 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: "3.4"
services:
pyshipper:
# Makefile fills PROJECT_NAME to current directory name.
# add UID to allow multiple users run this in parallel
container_name: ${MODULE_NAME}_${HOST_UID:-4000}
hostname: ${MODULE_NAME}
# These variables are passed into the container.
environment:
- UID=${HOST_UID:-4000}
- PROJECT_PATH=/home/${HOST_USER:-nodummy}/${MODULE_NAME}
- MODULE_NAME=${MODULE_NAME}
# Run with user priviliges by default.
user: ${HOST_USER:-nodummy}
image: ${MODULE_NAME}:${HOST_USER:-nodummy}
build:
context: .
# Build for current user.
target: user
dockerfile: Dockerfile
# These variables are passed to Dockerfile.
args:
- HOST_UID=${HOST_UID:-4000}
- HOST_USER=${HOST_USER:-nodummy}
# Run container as a service. Replace with something useful.
command: ["tail", "-f", "/dev/null"]
tty: true
volumes:
- ${PWD:-.}:/home/${HOST_USER:-nodummy}/${MODULE_NAME}