forked from BAWES-Universe/studenthub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
89 lines (81 loc) · 2 KB
/
docker-compose-local.yml
File metadata and controls
89 lines (81 loc) · 2 KB
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
version: '3.8'
networks:
studenthub-network:
driver: bridge
services:
mysql:
image: mysql:9
restart: always
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=studenthub
- MYSQL_DATABASE=studenthub
- MYSQL_USER=studenthubuser
- MYSQL_PASSWORD=studenthub
ports:
- "3307:3306"
networks:
- studenthub-network
app:
build:
context: .
dockerfile: ./Dockerfile-nginx-local
container_name: studenthub-backend-local
#command:
# - /bin/sh
# - -c
# - |
# sleep 5 && \
# ./init --env=Dev-Server --overwrite=All && \
# ./yii migrate && \
# sleep 1 && \
# ln -s /etc/nginx/sites-available/basic.conf /etc/nginx/sites-enabled/ && \
# service nginx restart && \
# tail -f /dev/null # Keep container running
ports:
- "8080:80" #app endpoint
- "21080:21080" # admin app port
- "22080:22080" # candidate app port
- "23080:23080" # employer app port
- "24080:24080" # inspector app port
- "25080:25080" # staff app port
- "26080:26080" # verification app port
- "3001:3001" # Yeaster microservice todo
- "3306:3306" # mysql port
volumes:
- .:/var/www/html
#- ./nginx/basic.conf:/etc/nginx/sites-available/basic.conf
depends_on:
- redis
- mysql
networks:
- studenthub-network
redis:
image: redis:6.2.3
ports:
- "7777:7777"
- "6379:6379"
networks:
- studenthub-network
# command:
# - redis-server --port 7777
volumes:
- redis-data:/data
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
PMA_HOST: mysql
PMA_USER: studenthubuser
PMA_PASSWORD: studenthub
ports:
- "8081:80"
networks:
- studenthub-network
depends_on:
- mysql
volumes:
redis-data:
mysql-data: