-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (47 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
version: '3'
services:
db:
image: mysql:8.0
container_name: 'GM2-DB'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_ROOT_USER: root
MYSQL_PASSWORD: password
command: --default-authentication-plugin=mysql_native_password
ports: ["3306:3306"]
volumes: [mysql-data:/var/lib/mysql]
api:
build:
context: ./api
args:
PLATFORM: ${PLATFORM:-default}
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
container_name: 'GM2-API'
volumes: [./api:/myapp]
ports: ["3000:3000"]
env_file: [webhook.env]
depends_on: [db]
admin_view:
build: ./admin_view
container_name: 'GM2-ADMIN-VIEW'
ports: ["8000:8000"]
command: npm run dev
volumes: [./admin_view:/app]
environment:
- VUE_APP_URL=http://localhost:3000
- VUE_APP_API_URL=http://api:3000
user_front:
build: ./user_front
container_name: 'GM2-USER-FRONT'
ports:
- "8002:8002"
- "24678:24678"
command: npm run dev
volumes: [./user_front:/app]
environment:
- VUE_APP_URL=http://api:3000
- VUE_APP_API_URL=http://localhost:3000
depends_on: [api]
volumes:
mysql-data:
driver: local