-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·63 lines (62 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
executable file
·63 lines (62 loc) · 1.34 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
version: "3.8"
services:
db:
image: postgres:10
volumes:
- data-bg:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${UNK_ANA_PG_PASSWORD}
POSTGRES_USER: ${UNK_ANA_PG_USER}
POSTGRES_DB: ${UNK_ANA_PG_DB}
container_name: unk-postgres
env_file:
- ./.env
ports:
- 5432:5431
redis:
image: 'redis:5-alpine'
command: redis-server
container_name: unk-redis
ports:
- '6379:6379'
volumes:
- ${UNK_ANA_REDIS_DATA}:/data
env_file:
- ./.env
#
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p ${PORT} -b '0.0.0.0'"
image: unk-webapp:${TAG-stable}
container_name: unk-web-app
env_file:
- ./.env
volumes:
- .:/unk-app # LOCAL FOLDER NAME
- '/unk-app/tmp' # DO NOT MOUNT TMP FOLDER
ports:
- "${PORT}:${PORT}"
depends_on:
- db
- redis
# sidekiq:
# build: .
# command: bundle exec sidekiq
# entrypoint: []
# container_name: unk-sidekiq
# image: unk-sidekiq:${TAG-stable}
# env_file:
# - ./docker/.env
# volumes:
# - '.:/unk-app'
# - '/unk-app/tmp' # don't mount tmp directory
# depends_on:
# - db
# - redis
volumes:
data-bg:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: ${UNK_ANA_PG_DATA}