-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
64 lines (56 loc) · 1.33 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
version: "3.8"
services:
project:
build: .
container_name: "project"
command: sh -c "cd /usr/src/project && python -m project"
restart: unless-stopped
env_file: ./.env
ports:
- "8000:8000"
depends_on:
- redis
- mysql
- nginx
volumes:
- ./:/usr/src/project
mysql:
image: mysql:8.3.0
container_name: "project-mysql"
command: --default-authentication-plugin=caching_sha2_password
restart: unless-stopped
env_file: ./.env
volumes:
- ./services/mysql/data:/var/lib/mysql
phpmyadmin:
image: docker.io/bitnami/phpmyadmin:5
container_name: "project-phpmyadmin"
restart: unless-stopped
env_file: ./.env
environment:
DATABASE_HOST: mysql
ports:
- "8080:80"
nginx:
image: jonasal/nginx-certbot:5.0.0
container_name: "project-nginx"
restart: unless-stopped
env_file:
- ./.env
ports:
- "80:80"
- "443:443"
volumes:
- ./services/nginx/user_conf.d:/etc/nginx/user_conf.d
- ./services/certbot/letsencrypt:/etc/letsencrypt
- ./project/admin/statics:/var/www/admin/statics
redis:
image: redis:7.2.4-alpine
container_name: "project-redis"
restart: unless-stopped
volumes:
- ./services/redis/data:/data
volumes:
mysql-data:
redis-data:
nginx_secrets: