-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 971 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.7'
services:
aeproxy-base: &aeproxy-base
image: aeproxy
working_dir: /app
user: ${CURRENT_UID}
tty: true
init: true
environment:
PYTHONUNBUFFERED: 1
PYTHONPATH: .
CONFIG_PATH: ${CONFIG_PATH}
build:
context: .
dockerfile: docker/backend.dockerfile
target: dev
volumes:
- ./aeproxy:/app/aeproxy
- ./config:/app/config
- ./requirements:/app/requirements
aeproxy:
<<: *aeproxy-base
command: |
watchexec --restart \
-w config \
-w aeproxy \
--exts py,yaml \
-- python3 -m aeproxy
ishell:
<<: *aeproxy-base
command: ipython
checks:
image: 'aeproxy_checks'
volumes:
- type: bind
source: .
target: /app
command: $CMD $ARGS
pytest:
image: 'aeproxy_checks'
entrypoint: pytest
user: ${CURRENT_UID}
volumes:
- type: bind
source: .
target: /app