forked from umanni/Fullstack-Developer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (94 loc) · 2 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
88
89
90
91
92
93
94
95
96
97
version: "3.9"
volumes:
postgres-data:
driver: local
gems-data:
driver: local
minio-data:
driver: local
redis-data:
driver: local
services:
database:
container_name: database
image: postgres:15.1
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ".:/usr/src/app"
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
maildev:
container_name: maildev
image: maildev/maildev
ports:
- "1025:1025"
- "1080:1080"
redis:
container_name: redis
image: redis:7.0.8
volumes:
- ".:/usr/src/app"
- redis-data:/data
command: redis-server
ports:
- "6379:6379"
minio:
container_name: minio
image: minio/minio:latest
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- ".:/usr/src/app"
- "minio-data:/data"
env_file: .env.development.local
command: server /data --console-address ":9001"
app:
container_name: app
build: .
command: bundle exec puma -C ./config/puma.rb
volumes:
- ".:/usr/src/app"
- gems-data:/usr/local/bundle
ports:
- "3000:3000"
depends_on:
- database
- redis
- maildev
- minio
stdin_open: true
env_file: .env.development.local
tty: true
worker:
container_name: worker
image: management-app
command: bundle exec sidekiq -C config/sidekiq.yml
volumes:
- ".:/usr/src/app"
- gems-data:/usr/local/bundle
depends_on:
- database
- redis
- maildev
- minio
env_file: .env.development.local
tty: true
networks:
management:
name: management
driver: bridge
driver_opts:
com.docker.network.bridge.name: management
external: true