-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
45 lines (41 loc) · 1.1 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
version: '3'
services:
miniflask:
image: miniflask-prod
build:
context: https://github.com/Project-Reclass/toynet-flask.git#89d8242bc4ed5757517188fa210fd4887fc2a7b7
dockerfile: toynet_mininet/Dockerfile
backend:
build:
context: https://github.com/Project-Reclass/toynet-flask.git#89d8242bc4ed5757517188fa210fd4887fc2a7b7
args:
FLASK_APP: flasksrc
FLASK_ENV: production
TOYNET_IMAGE_TAG: miniflask-prod
MINI_FLASK_PORT: 5000
COMPOSE_NETWORK: toynet_mininet
privileged: true
ports:
- "5000:5000"
environment:
- COMPOSE_NETWORK=toynet_mininet
networks:
- reclass_network_app
- toynet_mininet
volumes:
- /lib/modules:/lib/modules
- /var/run/docker.sock:/var/run/docker.sock
frontend:
build: https://github.com/Project-Reclass/toynet-react.git#main
ports:
- "3000:80"
networks:
- reclass_network_app
depends_on:
- backend
environment:
- SERVER_URI="http://backend:5000"
networks:
reclass_network_app:
toynet_mininet:
name: toynet_mininet