-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (67 loc) · 1.37 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
version: "3"
services:
mysql-db:
image: blagoja95/job-board-mysql-image:v1.0.1
container_name: job-board-mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
deploy:
mode: replicated
replicas: 1
ports:
- 3306:3306
expose:
- 3306
environment:
MYSQL_PASSWORD: "mydbpassword"
MYSQL_ROOT_PASSWORD: "mydbpassword"
MYSQL_DATABASE: "jobPostingsDB"
volumes:
- "mysql:/var/lib/mysql"
networks:
- job-board-net
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: php_my_admin
links:
- mysql-db
environment:
PMA_HOST: mysql-db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
deploy:
mode: replicated
replicas: 1
ports:
- 8081:80
networks:
- job-board-net
tomcat:
image: blagoja95/job-board-tomcat-image:v1.2.0
container_name: job-board-be
networks:
- job-board-net
ports:
- 8080:8080
expose:
- 8080
restart: always
deploy:
mode: replicated
replicas: 1
node-react:
image: blagoja95/job-board-node-image:v1.2.0
container_name: job-board-fe
networks:
- job-board-net
ports:
- 3000:3000
restart: always
deploy:
mode: replicated
replicas: 1
networks:
job-board-net: { }
volumes:
mysql: