-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-CI-main.yml
87 lines (81 loc) · 1.92 KB
/
docker-compose-CI-main.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.4"
services:
admin-api:
container_name: admin-api
build: ./adminAPI
working_dir: /code
command: npm run start:dev
volumes:
- ./adminAPI/app:/code/app
ports:
- 8081:3000
restart: on-failure
environment:
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
user-api:
container_name: user-api
build: ./userAPI
working_dir: /code
command: npm run start:dev
volumes:
- ./userAPI/app:/code/app
ports:
- 8082:3000
restart: on-failure
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_SECRET: ${GITHUB_SECRET}
JWT_USER_SECRET: ${JWT_USER_SECRET}
mariadb:
container_name: mariadb
image: mariadb:latest
restart: always
volumes:
- ./mariadb/:/docker-entrypoint-initdb.d/
ports:
# - 8084:3306
- 9091:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
react:
container_name: react
build: ./react
working_dir: /code/app
command: npm start
volumes:
- ./react/app/src:/code/app/src
ports:
- 3000:3000
restart: on-failure
customerapp:
container_name: customerapp
build: ./customerapp
working_dir: /code
command: npm start
volumes:
- ./customerapp/src:/code/src
ports:
- 3100:3000
restart: on-failure
bike-brain:
container_name: bike-brain2
tty: true
build:
context: ./bikeBrain
dockerfile: ./Dockerfile.bike
working_dir: /brain/app
restart: on-failure
depends_on:
- "admin-api"
- "mariadb"
- "customerapp"
- "react"