-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.dev.yml
72 lines (66 loc) · 1.63 KB
/
docker-compose.dev.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.9"
services:
mqtt-broker:
image: eclipse-mosquitto:latest
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
environment:
- TZ=America/Los_Angeles
ngrok:
image: ngrok/ngrok:latest
volumes:
- ./ngrok.yml:/ngrok.yml
command: start --all --config /ngrok.yml
ports:
- "4040:4040"
devcontainer:
build:
context: .
target: dev
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3.10}
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
- POETRY_PYPI_TOKEN_PYPI
volumes:
- ..:/workspaces
- command-history-volume:/home/user/.history/
dev:
extends: devcontainer
stdin_open: true
tty: true
entrypoint: []
command:
[
"sh",
"-c",
"sudo chown user $$SSH_AUTH_SOCK && cp --update /opt/build/poetry/poetry.lock /workspaces/dspygen/ && mkdir -p /workspaces/dspygen/.git/hooks/ && cp --update /opt/build/git/* /workspaces/dspygen/.git/hooks/ && zsh"
]
environment:
- POETRY_PYPI_TOKEN_PYPI
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
ports:
- "8000"
volumes:
- ~/.gitconfig:/etc/gitconfig
- ~/.ssh/known_hosts:/home/user/.ssh/known_hosts
- ${SSH_AGENT_AUTH_SOCK:-/run/host-services/ssh-auth.sock}:/run/host-services/ssh-auth.sock
profiles:
- dev
app:
build:
context: .
target: app
tty: true
ports:
- "8000:8000"
profiles:
- app
volumes:
command-history-volume: