-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
104 lines (82 loc) · 2.51 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.7'
services:
# -----------------------------------------------------------------
# WebServer
nginx:
image: nginx:1.21
restart: unless-stopped
container_name: nginx
#build:
#context: .
#dockerfile: ./devops/nginx/Dockerfile
depends_on:
- django_gunicorn
# ports:
# - "80:80"
volumes:
# Data Storage
- ./devops/nginx/default.conf:/etc/nginx/conf.d/default.conf
#- ./staticfiles:/static
# Define Time
#- /etc/localtime:/etc/localtime:ro
# -----------------------------------------------------------------
# Django e Gunicorn
django_gunicorn:
restart: unless-stopped
container_name: django_gunicorn
build:
context: .
dockerfile: ./devops/django_gunicorn/Dockerfile.Deploy
volumes:
# Data Storage
- ./django_project:/app
#- ./django_project:/static
# Define Time
#- /etc/localtime:/etc/localtime:ro
# -----------------------------------------------------------------
# Database
# Access via: (Host: localhost), (Port:33061) and (User/Passwords are bellow).
# mysql:
# image: mysql:8.0
# restart: unless-stopped
# container_name: "mysql"
# ports:
# - "33061:3306"
# volumes:
# # Configuration
# # - ./devops/mysql/mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql
# # Data Storage
# - ./data/mysql:/var/lib/mysql
# # Define Time
# - /etc/localtime:/etc/localtime:ro
# command:
# - --default-authentication-plugin=mysql_native_password
# - --character-set-server=utf8
# - --collation-server=utf8_general_ci
# environment:
# # Database root user passord:
# MYSQL_ROOT_PASSWORD: 'XHdfSQM1RkoOqc2i2kTY'
# # App Schema Access:
# MYSQL_DATABASE: 'mysql'
# MYSQL_USER: 'mysql'
# MYSQL_PASSWORD: 'F6fmy9l1SzRcD1Zqsxhs'
# -----------------------------------------------------------------
# Database Management IDE
# Access via: http://localhost:8081
# phpmyadmin:
# image: phpmyadmin:latest
# restart: unless-stopped
# container_name: phpmyadmin
# environment:
# - PMA_HOSTS=mysql_pi1
# - PMA_USER=root
# - PMA_PASSWORD=XHdfSQM1RkoOqc2i2kTY
# - PMA_PORT=3306
# - UPLOAD_LIMIT=300M
# - PMA_ABSOLUTE_URI=http://localhost:8081
# ports:
# - "8081:80"
# volumes:
# # Data Storage
# - ./data/phpmyadmin:/sessions
# -----------------------------------------------------------------