-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (73 loc) · 1.55 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
version: '3'
services:
backend:
image: codicon_backend:1.0
container_name: codicon_backend
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "${PORT_BACKEND}:8001"
environment:
- PYTHONUNBUFFERED=1
networks:
- codicon
volumes:
- ./Backend:/home/app
depends_on:
- mysql
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: backing-ring-nginx
restart: unless-stopped
ports:
- 80:80
- 443:443
environment:
- BACKEND_HOST=${BACKEND_HOST}
- APP_SSL=${APP_SSL}
- FRONTEND_HOST=${FRONTEND_HOST}
volumes:
- ./Frontend/dist/:/var/www/html/frontend/
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
networks:
- codicon
mysql:
image: mysql:5.7
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: pixel_perfect
MYSQL_USER: codicon
MYSQL_PASSWORD: codicon
volumes:
- ./mysql:/var/lib/mysql
networks:
- codicon
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: codicon
PMA_PASSWORD: codicon
depends_on:
- mysql
networks:
- codicon
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
networks:
- codicon
networks:
codicon:
driver: bridge