-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 1.79 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
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
73
74
75
76
77
78
79
80
81
networks:
easyfish:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.128.0.0/16
volumes:
db_data:
services:
db:
image: postgres:latest
ports:
- "5432:5432"
restart: unless-stopped
environment:
POSTGRES_PASSWORD: example
volumes:
- db_data:/var/lib/postgresql/data
networks:
easyfish:
ipv4_address: 172.128.0.200
backend:
build: "https://github.com/kruceo/easyfish.git#main:backend"
command: ["/bin/sh","-c","sleep 10s && ./start.sh"]
ports:
- "8080:8080"
restart: unless-stopped
environment:
- CORS_ORIGIN=http://localhost,http://localhost:5173,http://172.128.0.202
- DB_USERNAME=postgres
- DB_PASSWORD=example
- DB_SCHEMA=principal
- DB_HOST=172.128.0.200
- DB_PORT=5432
- DB_DIALECT=postgres
- SECRET=otherexample
depends_on:
- db
networks:
easyfish:
ipv4_address: 172.128.0.201
frontend:
build: "https://github.com/kruceo/easyfish.git#main:frontend"
ports:
- "80:80"
restart: unless-stopped
environment:
- DOMAIN=localhost
- API_ADDRESS=localhost
- API_PROTOCOL=http
- API_PORT=8080
- PRINTER_PROTOCOL=http
- PRINTER_ADDRESS=localhost
- PRINTER_PORT=8888
depends_on:
- backend
networks:
easyfish:
ipv4_address: 172.128.0.202
thermal:
build: https://github.com/kruceo/thermal-printer.git
ports:
- "8888:8888"
restart: unless-stopped
environment:
- PRINTER_VENDOR=EPSON
- PRINTER_NAME=TM-T20X
- PRINTER_WIDTH=48
- PRINTER_CHARSET=WPC1254_Turkish
devices:
- "/dev/bus/usb"
depends_on:
- frontend
networks:
easyfish:
ipv4_address: 172.128.0.203