forked from bonfire-networks/bonfire-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·87 lines (84 loc) · 1.87 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# A Dockerfile for development/testing
version: "3.5"
services:
web:
container_name: "bonfire_web"
build:
context: .
dockerfile: "Dockerfile.dev"
ports:
- "4000:4000"
env_file:
- config/dev/.env
environment:
- POSTGRES_HOST=db
- SEARCH_MEILI_INSTANCE=http://search:7700
depends_on:
- db
# - condition: service_healthy
- search
volumes:
# - /etc/passwd:/etc/passwd:ro
- type: bind
source: .
target: /opt/app
# do not mount the following:
# - /opt/app/_build
# - /opt/app/assets/node_modules
- /opt/app/data/postgres
- /opt/app/data/search
stdin_open: true # like docker run -i
tty: true # like docker run -t
user: $UID:$GID
db:
image: ${DB_DOCKER_IMAGE}
# volumes:
# - ./data/postgres/dev:/var/lib/postgresql/data:z
# - /etc/passwd:/etc/passwd:ro
ports:
- "5432:5432"
env_file:
- config/dev/.env
# user: $UID:$GID
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
search:
image: getmeili/meilisearch:latest
ports:
- "7700:7700"
# volumes:
# - "./data/search/dev:/data.ms"
# - /etc/passwd:/etc/passwd:ro
env_file:
- config/dev/.env
# user: $UID:$GID
proxy:
profiles:
- proxy
links:
- web
image: "caddy:alpine"
restart: always
ports:
- "80:80"
- "443:443"
- "443:443/udp"
env_file:
- config/dev/.env
volumes:
- caddy_data:/data
- caddy_config:/config
- type: bind
source: ${PROXY_CADDYFILE_PATH}
target: /etc/caddy/Caddyfile
read_only: true
- type: bind
source: ./data/uploads
target: /frontend/uploads
volumes:
caddy_data:
# external: true
caddy_config: