-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.42 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
55
56
57
58
59
60
61
62
63
version: '3'
services:
firebase:
build: ./docker/dev/firebase
restart: always
ports:
- 9099:9099 # Auth
- 4000:4000 # Emulator Suite UI
env_file:
- ./docker/dev/.env
working_dir: /opt/workspace
command: firebase emulators:start --only=auth --project=emulator --import=seeder
minio:
image: minio/minio
restart: always
ports:
- 9000:9000 # Storage
- 9001:9001 # Console
env_file:
- ./docker/dev/.env
volumes:
- ./docker/dev/minio/data:/data
- ./docker/dev/minio/policies:/policies
entrypoint: []
command: >
sh -c "cp -r /policies/* /data/.minio.sys/;
minio server /data --console-address :9001;"
healthcheck:
test: curl -I http://localhost:9000/minio/health/live
interval: 5s
mc:
image: minio/mc
depends_on:
minio:
condition: service_healthy
env_file:
- ./docker/dev/.env
entrypoint: []
command: |
sh -c "
set -euxo pipefail
mc alias set minio http://minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD
mc mb minio/$$S3_BUCKET || true
mc policy set public minio/$$S3_BUCKET
mc admin service restart minio
"
postgres:
image: postgres:13.2
restart: always
ports:
- 5432:5432
env_file:
- ./docker/dev/.env
volumes:
- database:/var/lib/postgresql/data
volumes:
database:
driver: local