-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.22 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
version: '3'
services:
db:
build:
context: mysql
command: --default-authentication-plugin=mysql_native_password --wait_timeout=28800
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: TrackErrors
MYSQL_USER: TrackErrors
MYSQL_PASSWORD: letmein12
volumes:
- ./mysql:/docker-entrypoint-initdb.d/:ro
- /var/www/verify/mysql:/var/lib/mysql
ports:
- '3307:3306'
container_name: verify-mariadb
restart: always
app:
build: .
container_name: verify-app
command: gunicorn verify.wsgi:application --bind 0.0.0.0:8000 --timeout=3600 --workers=10
volumes:
- .:/code
- /var/www/verify/media:/verify-app/media
- /var/www/verify/static:/verify-app/static
ports:
- '8001:8000'
depends_on:
- db
environment:
VERIFY_MYSQL_HOST: db
VERIFY_MYSQL_DATABASE: TrackErrors
VERIFY_MYSQL_USER: TrackErrors
VERIFY_MYSQL_PASSWORD: letmein12
VERIFY_MYSQL_PORT: 3306
restart: always
nginx:
container_name: verify-nginx
build: ./nginx
ports:
- 5004:80
depends_on:
- app
volumes:
- /var/www/verify/media:/files/media
- /var/www/verify/static:/files/static
restart: always