forked from DNA-BarKeeper/barkeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (76 loc) · 1.57 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
version: '3.7'
services:
postgres:
image: 'postgres:14.1'
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- '5432:5432'
volumes:
- barkeeper-postgres:/var/lib/postgresql/data
restart: always
redis:
image: 'redis:6.2.6'
ports:
- '6379:6379'
volumes:
- barkeeper-redis:/var/lib/redis/data
restart: always
app:
image: barkeeper
depends_on:
- postgres
- sidekiq
volumes:
- .:/var/www/barkeeper
ports:
- ${PUMA_PORT}:${PUMA_PORT}
env_file:
- .env
restart: always
sidekiq:
image: barkeeper
build:
context: .
args:
PUMA_PORT: ${PUMA_PORT}
RAILS_ENV: ${RAILS_ENV}
command: bundle exec sidekiq
depends_on:
- postgres
- redis
volumes:
- .:/var/www/barkeeper
env_file:
- .env
restart: always
nginx:
build:
context: .
dockerfile: web.Dockerfile
args:
PROJECT_DOMAIN: ${PROJECT_DOMAIN}
PORT: ${PORT}
PUMA_PORT: ${PUMA_PORT}
SSL_PORT: ${SSL_PORT}
RAILS_ENV: ${RAILS_ENV}
depends_on:
- app
env_file:
- .env
ports:
- ${PORT}:${PORT}
- ${SSL_PORT}:${SSL_PORT}
volumes:
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
restart: always
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
volumes:
barkeeper-redis:
barkeeper-postgres: