-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (54 loc) · 1.25 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
52
53
54
version: "2.2"
services:
node:
build: ./.docker/node/build
network_mode: host
working_dir: /srv
env_file:
- ./.env
environment:
PATH: /srv/node_modules/.bin:$PATH
volumes:
- ./:/srv
- ./.docker/node/.cache:/home/node/.cache
- ./.docker/node/.config:/home/node/.config
app:
extends:
service: node
expose:
- 3000
firebase:
build: ./.docker/node/build
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 10s
timeout: 60s
retries: 5
network_mode: host
working_dir: /srv
env_file:
- ./.env
environment:
PATH: /srv/node_modules/.bin:$PATH
volumes:
- ./:/srv
- ./.docker/node/.cache:/home/node/.cache
- ./.docker/node/.config:/home/node/.config
command: ["yarn", "firebase", "emulators:start"]
expose:
- 5001
- 8080
- 8081
firebase-migrate:
build: ./.docker/node/build
network_mode: host
working_dir: /srv
env_file:
- ./.env
environment:
PATH: /srv/node_modules/.bin:$PATH
volumes:
- ./:/srv
- ./.docker/node/.cache:/home/node/.cache
- ./.docker/node/.config:/home/node/.config
command: ["yarn", "firebase:seed"]