-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.44 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# require to run with docker compose --project-directory .
# ex : docker compose --project-directory . -f ./indus/docker/dev.docker-compose.yml up
version: '3.6'
# this file setup the dev-container
services:
dev_container:
build:
context: .
dockerfile: ./Dockerfile
# target: dev_env
#args:
# CVP_DOCKER_REGISTRY_URL: cvp-docker-stages.artifactory-noone.noone.fr
# Empty variables just copy current shell variables inside container
# CVP_BUILD_TIME_ENV:
#container_name: dev_container_core
user: "dev:dev"
# for debug
#user: "root:root"
# extra_hosts:
# host.docker.internal: host-gateway
# require a tunnel on host
# definition explicite
env_file: .env
environment:
# to have poetry and pypi credentials inside dev container do not forget to set
# CVP_RUN_TIME_ENV="
# POETRY_HTTP_BASIC_CVP_PYPI_USERNAME=xxx
# POETRY_HTTP_BASIC_CVP_PYPI_PASSWORD=xxx
# "
# before running docker-compose up
CVP_RUN_TIME_ENV:
network_mode: host
restart: always
entrypoint: /bin/bash
command: [ "-c", "/bin/sleep 999999" ]
# entrypoint: /docker-run-entrypoint.sh
volumes:
- type: bind
source: ./
target: /app/
# env de dev vscode
- type: volume
source: CVP_vscode
target: /home/hpi/.vscode-server
volumes:
CVP_vscode:
networks:
hpi:
driver: bridge