-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1017 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
42
43
44
45
version: "3.1"
services:
firebase:
build:
context: .
dockerfile: ./docker/firebase/Dockerfile
args:
- FIREBASE_PROJECT=$FIREBASE_PROJECT
- FIREBASE_TOKEN=$FIREBASE_TOKEN
image: firebase
container_name: firebase-prisma
ports:
- 4000:4000
- 5000:5000
- 5001:5001
volumes:
- ./:/app
- firebase-lib:/app/functions/lib
- firebase-node_modules:/app/functions/node_modules
environment:
- FIREBASE_PROJECT=$FIREBASE_PROJECT
- FIREBASE_TOKEN=$FIREBASE_TOKEN
- DATABASE_URL=$DATABASE_URL
tty: true
# MySQL
db:
image: mysql:5.7
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test-db
MYSQL_USER: docker
MYSQL_PASSWORD: docker
restart: always
volumes:
- mysql-data:/var/lib/mysql
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
ports:
- 3306:3306
volumes:
firebase-node_modules:
firebase-lib:
mysql-data: