forked from onetimesecret/onetimesecret
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 748 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 748 Bytes
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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: onetime-app
depends_on:
- redis
env_file:
- .env
entrypoint: ["./bin/entrypoint.sh"]
stdin_open: true
tty: true
command: ["bundle", "exec", "thin", "-R", "config.ru", "-a", "0.0.0.0", "-p", "7143", "start"]
logging:
driver: "json-file"
options:
max-size: "60m"
max-file: "3"
ports:
- 7143:7143
- 3000:3000
volumes:
- .:/app
redis:
image: redis:7.0-alpine
container_name: onetime-redis
ports:
- 6379:6379
volumes:
- redis-data:/data
- ./etc/redis.conf:/usr/local/etc/redis/redis.conf
volumes:
redis-data: