-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
78 lines (77 loc) · 2 KB
/
docker-compose.dev.yml
File metadata and controls
78 lines (77 loc) · 2 KB
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
services:
bulwarkauthadmin-ui:
build:
context: .
dockerfile: Dockerfile
container_name: bulwarkauthadmin_ui_container
ports:
- 3000:80
depends_on:
bulwarkauthadmin:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://localhost:80']
interval: 5s
timeout: 5s
retries: 3
restart: on-failure
mongodb:
image: mongo:7
container_name: mongodb_container
ports:
- 27017:27017
command: mongod --replSet rs0
healthcheck:
test: |
mongosh --eval "try { rs.status().ok } catch (e) { rs.initiate({ _id: 'rs0', members: [{ _id: 0, host: 'localhost:27017' }] }).ok }"
start_period: 0s
interval: 500ms
timeout: 5s
retries: 5
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- 1025:1025
- 8025:8025
container_name: mailhog_container
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://localhost:8025']
interval: 5s
timeout: 5s
retries: 3
bulwarkauth:
image: ghcr.io/latebit-io/bulwarkauth:latest
network_mode: 'host'
env_file:
- bulwark.test.env
depends_on:
mongodb:
condition: service_healthy
mailhog:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://localhost:8080/health']
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
restart: on-failure
container_name: bulwarkauth_container
bulwarkauthadmin:
image: ghcr.io/latebit-io/bulwarkauthadmin:latest
network_mode: 'host'
env_file:
- bulwarkadmin.env
depends_on:
mongodb:
condition: service_healthy
bulwarkauth:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://localhost:8888/health']
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
restart: on-failure
container_name: bulwarkauthadmin_container