-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 911 Bytes
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
version: '3.4'
services:
lydia_api:
image: "lydia-web-app-server"
build:
context: server/
env_file:
- server/.env
ports:
- "5000:5000"
networks:
main_net:
ipv4_address: 172.28.1.1
healthcheck:
interval: 10s
retries: 5
test: ["CMD", "curl", "-f", "http://localhost:5000/api/"]
timeout: 5s
restart: on-failure
entrypoint:
- python3
- lydia_web_api/app.py
- --port 5000
web:
image: "lydia-web-app-client"
depends_on:
- lydia_api
environment:
- PORT=3000
- REACT_APP_API_ENDPOINT=:5000/api/
build:
context: client/
networks:
main_net:
ipv4_address: 172.28.1.3
ports:
- "3000:3000"
entrypoint:
- yarn
- start
networks:
main_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16