forked from ioi-2017/print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.84 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
version: '3.1'
services:
ioiprint:
build:
context: .
args:
TIMEZONE: Asia/Baku # The timezone in which times are calculated
ports:
- 5000:5000 # The first 5000 is the port the print service will be on
volumes:
- ./uploads/:/usr/src/ioiprint/uploads/ # the directory before ":" is the uploads directory on the host machine
environment:
WEBSERVICE_URL: 172.30.20.100:8080 # the address of the Web Service that provies the contestant information
UPLOADS_DIRECTORY: /usr/src/ioiprint/uploads/
CUPS_ADDRESS: cups-back:631
# The printer or class names used for contest zones in json format (They should exist in cups-back server)
PRINTERS_FOR_ZONES: >
{
"A": "printer1",
"B": "printer1",
"C": "printer2",
"D": "printer2",
"E": "printer3",
"F": "printer3",
"G": "printer4",
"H": "printer4"
}
DEFAULT_PRINTER: default # Not used
DRAFT_PRINTER: draft_printer # Printer or class name used for DRAFT Translations Printing
FINAL_PRINTER: final_printer # Printer or class name used for FINAL Translations Printing
cups-front: # Only for contestant printing, not needed for Translation printing:
build:
context: cups/
args:
PRINTER_NAME: ioi_printer # The printer name to setup on contestants' computers
ports:
- 631:631
environment:
# Username and password used for cups-front server
CUPS_USER_ADMIN: admin
CUPS_USER_PASSWORD: ioibaku2019
PRINTER_NAME: ioi_printer # It should be the same as PRINTER_NAME in build args
cups-back:
image: aadl/cups-alpine
ports:
- 6631:631
environment:
# Username and password used for cups-back server
CUPS_USER_ADMIN: admin
CUPS_USER_PASSWORD: ioibaku2019