forked from Cisco-Talos/FIRST-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 913 Bytes
/
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
version: '2'
services:
api:
build: .
ports:
- 80:80
- 443:443
depends_on:
- mongo
- mysql
environment:
- MYSQL_USER=root
- MYSQL_PASSWORD=password12345
- MYSQL_DATABASE=first_db
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- MONGO_HOST=mongo
- MONGO_PORT=27017
- MONGO_NAME=first_db
- GOOGLE_SECRET=/usr/local/etc/google_secret.json
volumes:
- ./data/ssl:/etc/apache2/ssl
restart: always
mongo:
image: mongo
expose:
- 27017
volumes:
- ./data/mongodb:/data/db
restart: always
mysql:
image: mysql
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=password12345
- MYSQL_DATABASE=first_db
volumes:
- ./data/mysql:/var/lib/mysql
restart: always