-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-example.yml
60 lines (56 loc) · 1.46 KB
/
docker-compose-example.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
version: "2.2"
services:
nginx:
image: ${COMPOSE_PROJECT_NAME}-nginx
build:
context: docker/nginx
init: true
network_mode: "host"
volumes:
- ./docker/nginx/nginx.conf:/nginx.conf
- ./docker/nginx/nginx_mime.types:/nginx_mime.types
- ./examples/certificates:/certificates
# - ./aiowstunnel/healthcheck_frontend/build:/www-root
command: ["nginx", "-c", "/nginx.conf"]
server:
image: ${COMPOSE_PROJECT_NAME}-python
build:
context: docker/python
init: true
network_mode: "host"
stop_signal: SIGINT
volumes:
- ./aiowstunnel:/pypackages/aiowstunnel
- ./examples:/examples
working_dir: /examples
command: ["python", "server.py"]
environment:
PYTHONPATH: /pypackages
client:
image: ${COMPOSE_PROJECT_NAME}-python
build:
context: docker/python
init: true
network_mode: "host"
stop_signal: SIGINT
volumes:
- ./aiowstunnel:/pypackages/aiowstunnel
- ./examples:/examples
working_dir: /examples
command: ["python", "client.py"]
environment:
PYTHONPATH: /pypackages
appserver:
image: ${COMPOSE_PROJECT_NAME}-python
build:
context: docker/python
init: true
network_mode: "host"
stop_signal: SIGINT
volumes:
- ./aiowstunnel:/pypackages/aiowstunnel
- ./examples:/examples
working_dir: /examples
command: ["python", "appserver.py"]
environment:
PYTHONPATH: /pypackages