-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
executable file
·62 lines (58 loc) · 1.84 KB
/
docker-compose.yaml
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
version: "3"
services:
highradiustraining-servlet:
container_name: highradiustraining-servlet
deploy:
replicas: 1
restart_policy:
condition: unless-stopped
ports:
- "280:8080"
image: ankurpaul19/highradiustraining-servlet
highradiustraining-flask:
container_name: highradiustraining-flask
deploy:
replicas: 1
restart_policy:
condition: unless-stopped
ports:
- "5000:5000"
image: ankurpaul19/highradiustraining-flask
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
volumes:
- /var/lib/mysql:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=mysql
- MYSQL_DATABASE=grey_goose
- MYSQL_USER=mysql
- MYSQL_PASSWORD=mysql
ports:
- "3306:3306"
db_seeder:
image: mysql:latest
volumes:
- ./Database/db.sql:/db.sql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
entrypoint:
[
"bash",
"-c",
"sleep 10 && mysql --user=mysql --password=mysql --host=db --port=3306 grey_goose < /db.sql && exit",
]
depends_on:
- db
phpmyadmin:
image: phpmyadmin:latest
restart: unless-stopped
ports:
- 8080:80
environment:
# we specify that we connect to an arbitrary server with the flag below
# "arbitrary" means you're able to specify which database server to use on login page of phpmyadmin
- PMA_ARBITRARY=1
depends_on:
- db_seeder