-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
97 lines (94 loc) · 1.92 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.2'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./conf/html:/usr/share/nginx/html:ro
- ./conf/nginx:/etc/nginx/conf.d:ro
- images:/usr/share/nginx/html/images:ro
- ${TEST_DIR}:/usr/share/nginx/html/tests:ro
networks:
- priv
depends_on:
- hmg
- guac
- guacd
- vm
hmg:
build:
context: ./hmg-docker
args:
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
expose:
- "9090"
volumes:
- ${TEST_DIR}:/tests:ro
- images:/images
networks:
- priv
pgsql:
image: postgres:alpine
restart: always
volumes:
- ./conf/pgsql:/docker-entrypoint-initdb.d
- ${SQL_DATA}:/var/lib/postgresql/data/
environment:
POSTGRES_USER: gadmin
POSTGRES_PASSWORD: guac0911admin
POSTGRES_DB: g_db
networks:
- priv
guacd:
image: glyptodon/guacd
restart: always
networks:
- priv
depends_on:
- vm
guac:
image: glyptodon/guacamole
restart: always
expose:
- "8080"
environment:
POSTGRES_HOSTNAME: pgsql
POSTGRES_DATABASE: g_db
POSTGRES_USER: gadmin
POSTGRES_PASSWORD: guac0911admin
POSTGRES_DEFAULT_MAX_CONNECTIONS_PER_USER: 1
GUACD_HOSTNAME: guacd
GUACD_PORT_4822_TCP_ADDR: guacd
GUACD_PORT_4822_TCP_PORT: 4822
networks:
- priv
depends_on:
- pgsql
- guacd
- vm
vm:
build:
context: ./uscr-docker
args:
VNCPASS: ${VNCPASS}
SDKFILE: ${SDKFILE}
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
environment:
EMU_NUM: ${EMU_NUM}
restart: always
expose:
- "6001-600${EMU_NUM}"
devices:
- "/dev/kvm:/dev/kvm"
volumes:
- ${TEST_DIR}:/tests
networks:
- priv
volumes:
images:
networks:
priv:
driver: bridge