-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
41 lines (41 loc) · 1009 Bytes
/
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
version: "1.1"
services:
web:
depends_on:
- backend
build: ./photoly_frontend_vue
container_name: photoly_vue
ports:
- "5200:80"
backend:
depends_on:
- db_mysql
- db_redis
build: ./photoly_backend
container_name: photoly_back
ports:
- "8384:8084"
volumes:
- ./upload_data:/photoly
db_mysql:
image: mysql:8.3.0
container_name: photoly_mysql
ports:
- "3308:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: G8aAYw24FGVw3i2311Hasvd241
MYSQL_PASSWORD: G8aAYw24FGVw3i2311Hasvd241
MYSQL_DATABASE: photoly
volumes:
- ./database/mysql-dump:/docker-entrypoint-initdb.d
- ./database/mysql-data:/var/lib/mysql
db_redis:
image: redis:7.2.4
container_name: photoly_redis
command: redis-server --requirepass haroldci --save 600 1000
ports:
- "6390:6379"
restart: always
volumes:
- ./database/redis-conf/redis.conf:/usr/local/etc/redis/redis.conf