forked from porter-dev/porter-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
65 lines (64 loc) · 1.4 KB
/
docker-compose.dev.yaml
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
64
65
version: "3"
services:
webpack:
build:
context: ./dashboard
dockerfile: ./docker/dev.Dockerfile
restart: on-failure
volumes:
- ./dashboard:/webpack:rw,cached
- /webpack/node_modules
porter:
build:
context: .
dockerfile: ./docker/dev.Dockerfile
depends_on:
- postgres
env_file:
- ./docker/.env
command: /bin/sh -c '/porter/bin/migrate; air -c .air.toml;'
restart: on-failure
volumes:
- ./cmd:/porter/cmd
- ./internal:/porter/internal
- ./server:/porter/server
postgres:
image: postgres:latest
container_name: postgres
environment:
- POSTGRES_USER=porter
- POSTGRES_PASSWORD=porter
- POSTGRES_DB=porter
ports:
- 5400:5432
volumes:
- database:/var/lib/postgresql/data
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
volumes:
- database:/var/lib/postgresql/data
chartmuseum:
image: docker.io/bitnami/chartmuseum:0-debian-10
container_name: chartmuseum
ports:
- 5000:8080
volumes:
- chartmuseum:/bitnami/data
nginx:
image: nginx:mainline-alpine
container_name: nginx
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./docker/nginx_local.conf:/etc/nginx/nginx.conf:ro
depends_on:
- porter
- webpack
volumes:
database:
metabase:
chartmuseum: