-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
73 lines (67 loc) · 1.61 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
version: '3.8'
services:
client:
container_name: react
build:
context: ./client
volumes:
- /app/node_modules
- ./client/:/app
- share:/app/build
environment:
- REACT_APP_SERVER=${REACT_APP_SERVER}
- REACT_APP_CLIENT=${REACT_APP_CLIENT}
server:
container_name: nodejs
build:
context: ./server
volumes:
- /app/node_modules
- ./server/:/app
environment:
- NODE_ENV=${NODE_ENV}
- ORIGIN=${ORIGIN}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- REDIS_HOST=${REDIS_HOST}
- SAMPLE_PROJECT=${SAMPLE_PROJECT}
nginx:
container_name: nginx
build:
context: ./nginx
volumes:
- ${SSL_FULLCHAIN_DIR}:/ssl/fullchain.pem
- ${SSL_PRIVKEY_DIR}:/ssl/privkey.pem
- share:/usr/nginx/html
ports:
- 80:80
- 443:443
restart: always
mysql:
container_name: mysql
image: mysql:5.7
volumes:
- mysql-agilstorm:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
command:
- --character-set-server=utf8
- --collation-server=utf8_general_ci
redis:
container_name: redis
image: redis
volumes:
- ./server/redis.conf:/usr/local/etc/redis/redis.conf
- /data/redis:/data
ports:
- 6379:6379
command: redis-server /usr/local/etc/redis/redis.conf
restart: always
volumes:
share:
mysql-agilstorm: