-
Notifications
You must be signed in to change notification settings - Fork 68
/
docker-compose.yml
56 lines (53 loc) · 1.17 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
version: '3.3'
services:
mysql:
image: mysql/mysql-server:8.0.23
restart: always
command: --bind-address=0.0.0.0
container_name: ais-ninja-mysql
environment:
MYSQL_DATABASE: ais_ninja
MYSQL_USER: ais
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/conf:/etc/mysql/conf.d
networks:
- ais-ninja
redis:
image: redis
restart: always
container_name: ais-ninja-redis
volumes:
- ./redis/data:/data
networks:
- ais-ninja
app:
image: jarvis2f/ais-ninja:v1.0.8
restart: always
container_name: ais-ninja-app
environment:
DATABASE_NAME: ais_ninja
DATABASE_PORT: 3306
DATABASE_HOST: mysql
DATABASE_USER: ais
DATABASE_PASSWORD: ${MYSQL_PASSWORD}
DATABASE_SYNC: 'true'
REDIS_URL: redis://redis:6379/0
EMAIL_HOST: smtp.office365.com
EMAIL_PORT: 587
EMAIL_FROM:
EMAIL_AUTH_USER:
EMAIL_AUTH_PASS:
SOCIAL_GOOGLE_CLIENT_ID:
SERVER_DOMAIN:
ports:
- 80:80
networks:
- ais-ninja
depends_on:
- mysql
- redis
networks:
ais-ninja:
driver: bridge