forked from cam-inc/viron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
66 lines (63 loc) · 1.75 KB
/
docker-compose.dev.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
version: '2'
services:
web:
build: .
working_dir: /viron
depends_on:
- api
ports:
- 8080:8080
environment:
- SHELL=/bin/bash
volumes:
- ./.editorconfig:/viron/.editorconfig
- ./.eslintrc.js:/viron/.eslintrc.js
- ./.stylefmtrc:/viron/.stylefmtrc
- ./.stylelintrc:/viron/.stylelintrc
- ./package-lock.json:/viron/package-lock.json
- ./package.json:/viron/package.json
- ./postcss.config.js:/viron/postcss.config.js
- ./public:/viron/public
- ./rollup.base.config.js:/viron/rollup.base.config.js
- ./rollup.config.js:/viron/rollup.config.js
- ./rollup.local.config.js:/viron/rollup.local.config.js
- ./src:/viron/src
- ./task:/viron/task
- ./test:/viron/test
command: npm run start
api:
build: ./demo
working_dir: /demo
depends_on:
- mysql
ports:
- 3000:3000
- 53000:53000
environment:
- SERVICE_ENV=local
- GOOGLE_OAUTH_CLIENT_ID=${GOOGLE_OAUTH_CLIENT_ID}
- GOOGLE_OAUTH_CLIENT_SECRET=${GOOGLE_OAUTH_CLIENT_SECRET}
volumes:
- ./demo/package.json:/demo/package.json
- ./demo/shared:/demo/shared
- ./demo/config:/demo/config
- ./demo/app.js:/demo/app.js
- ./demo/controllers:/demo/controllers
- ./demo/fittings:/demo/fittings
- ./demo/swagger:/demo/swagger
- ./demo/test:/demo/test
- ./demo/.env.template:/demo/.env
command: npm run inspect
mysql:
image: mysql:5.6
ports:
- 3306:3306
volumes:
- $PWD/.docker/mysql/data:/var/lib/mysql
env_file:
- ./mysql.env
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
networks:
default:
aliases:
- viron.dev