-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
68 lines (63 loc) · 1.35 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
version: '3.8'
services:
app:
image: itsgoingtobe/app:latest
command: npm start
volumes:
- ./app:/app
- /app/node_modules
expose:
- "3000"
environment:
- PORT=3000
- SOCKET_PORT=8000
storybook:
image: itsgoingtobe/app:latest
command: npm run storybook
volumes:
- ./app:/app
- /app/node_modules
ports:
- "6006:6006"
swagger:
image: swaggerapi/swagger-ui
volumes:
- ./server/swagger.yml:/swagger.yml
environment:
SWAGGER_JSON: /swagger.yml
ports:
- "4000:8080"
server:
image: itsgoingtobe/server:latest
command: npm start
depends_on:
- mysql
volumes:
- ./server:/server
- /server/node_modules
expose:
- "8001"
environment:
- NODE_ENV=development
- DATABASE_URL=mysql://user:password@mysql:3306/itsgoingtobe
- PORT=8001
- JWT_PASSPHRASE=secret
webserver:
image: nginx:alpine
depends_on:
- app
- server
volumes:
- ./site.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=itsgoingtobe
- MYSQL_USER=user
- MYSQL_PASSWORD=password