-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
91 lines (91 loc) · 1.99 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
version: "3.4"
services:
conference-app:
container_name: conference-app
env_file:
- .env
- envs/conference-app.env
command:
- sh
- -c
- |
if [ -e tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
bundle install
bin/rails s -p 3000 -b 0.0.0.0
build:
context: .
volumes:
- .:/app
- conference-app-bundle:/usr/local/bundle
ports:
- 3000:3000
stdin_open: true
tty: true
depends_on:
- conference-app-db
- conference-app-worker
- conference-app-css
conference-app-css:
container_name: conference-app-css
env_file:
- .env
- envs/conference-app.env
command:
- sh
- -c
- |
bundle install
bin/rails tailwindcss:watch
build:
context: .
volumes:
- .:/app
- conference-app-bundle:/usr/local/bundle
stdin_open: true
tty: true
conference-app-worker:
container_name: conference-app-worker
env_file:
- .env
- envs/conference-app.env
command:
- sh
- -c
- |
if [ -e tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
bundle install
bin/jobs --recurring_schedule_file=config/recurring.yml
build:
context: .
volumes:
- .:/app
- conference-app-bundle:/usr/local/bundle
depends_on:
- conference-app-db
stdin_open: true
tty: true
conference-app-db:
container_name: conference-app-db
image: postgres:15.4-bookworm
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- conference-app-postgres-data:/var/lib/postgresql/data
ports:
- 15432:5432
conference-app-redis:
container_name: conference-app-redis
image: redis:7.2-bookworm
volumes:
- conference-app-redis-data:/data
ports:
- 16379:6379
volumes:
conference-app-bundle:
conference-app-redis-data:
conference-app-postgres-data: