forked from BAWES-Universe/studenthub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
83 lines (75 loc) · 2.03 KB
/
docker-compose-dev.yml
File metadata and controls
83 lines (75 loc) · 2.03 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
version: '3.8'
networks:
studenthub-dev-network:
driver: bridge
services:
mysql:
image: mysql:9
restart: always
volumes:
- mysql-data:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
environment:
- MYSQL_ROOT_PASSWORD=studenthub
- MYSQL_DATABASE=studenthub
- MYSQL_USER=studenthubuser
- MYSQL_PASSWORD=studenthub
- MYSQL_SQL_MODE="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
ports:
- "3307:3306"
networks:
- studenthub-dev-network
#composer_installation:
# container_name: composer_installation
# image: composer
# volumes:
# - .:/var/www/html
# command: composer install
app:
build:
context: .
dockerfile: ./Dockerfile-nginx-dev
container_name: studenthub-backend-dev
#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
- "80: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-dev-network
redis:
image: redis:6.2.3
ports:
- "6379:6379"
networks:
- studenthub-dev-network
# command:
# - redis-server --port 7777
volumes:
- redis-data:/data
volumes:
redis-data:
mysql-data: