-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 975 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
42
version: "3.7"
services:
mainserver:
image: main-server
container_name: mainserver
build:
context: ./mainserver
dockerfile: Dockerfile
restart: on-failure
environment:
SERVER_PORT: 3002
DB_NAME_SQL: Uno
DB_USERNAME_SQL: root
DB_PASSWORD_SQL: 12345678
DB_HOST_SQL: mysql
SESSION_SECRET: Its 322
SECRET_KEY: It's easy 322
links:
- mysql
ports:
- 3002:3002
volumes:
- ./static/productImages:/app/mainserver/static/productImages
redis:
container_name: redis
image: redis:alpine
ports:
- 6379:6379
mysql:
container_name: mysql
image: mysql
restart: on-failure
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: Uno
MYSQL_USER: root
MYSQL_PASSWORD: 12345678
MYSQL_ROOT_PASSWORD: 12345678
ports:
- 33061:3306
volumes:
- ./mysql_data:/var/lib/mysql