-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
37 lines (37 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
version: "3"
services:
app:
build:
context: .
dockerfile: app.Dockerfile
container_name: regexr-app
ports:
- "3000:3000"
- "3001:3001"
volumes:
- ./regexr-3.6.1/:/regexr/
- node_modules:/regexr/node_modules
api:
build:
context: .
dockerfile: api.Dockerfile
container_name: regexr-api
ports:
- "8888:80"
volumes:
- ./regexr-3.6.1/:/var/www/html/
- vendor:/var/www/html/server/vendor/
db:
image: percona:5.7-centos
container_name: regexr-db
command: --sql_mode=""
environment:
MYSQL_ROOT_PASSWORD: 'Impish capacity footgear partyanimal 1234'
ports:
- "3307:3306"
volumes:
- datastore:/var/lib/mysql
volumes:
node_modules:
vendor:
datastore: