-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.2 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
version: '3'
services:
db:
restart: always
image: mysql
container_name: httpbasic_mysql
ports:
- "9999:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: httpbasic
MYSQL_USER: httpbasic
MYSQL_PASSWORD: httpbasic
MYSQL_ROOT_HOST: '%'
healthcheck:
test: "/usr/bin/mysql --user=httpbasic --password=httpbasic--execute \"SHOW DATABASES;\""
interval: 60s
timeout: 60s
retries: 10
networks:
- backbone
server-code:
restart: always
container_name: httpbasicapi
build:
context: .
dockerfile: docker-service
depends_on:
- db
expose:
- "8080"
ports:
- 8080:8080
environment:
WAIT_HOSTS: httpbasic_mysql:3306
networks:
- backbone
ui-code:
restart: always
container_name: angularcode
build:
context: src\main\webapp
dockerfile: angular-code
links:
- server-code
depends_on:
- server-code
expose:
- "4200"
ports:
- 4200:80
networks:
- backbone
networks:
backbone:
driver: bridge