forked from Hacktoberfest/hacktoberfest-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (69 loc) · 1.49 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
version: '3.4'
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
- database
- redis
- memcached
volumes:
- .:/app:delegated
- gem_cache:/vendor/bundle/ruby/2.5.0/gems
env_file: .env
environment:
RAILS_ENV: development
entrypoint: ./script/docker-entrypoint.sh
networks:
- app-network
database:
image: postgres:11
environment:
POSTGRES_USER: $HACKTOBERFEST_DATABASE_USERNAME
POSTGRES_PASSWORD: $HACKTOBERFEST_DATABASE_PASSWORD
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432" # enables access for RubyMine
networks:
- app-network
redis:
image: redis:5.0
volumes:
- ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- app-network
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
sidekiq:
image: hacktoberfest_app
depends_on:
- app
volumes:
- gem_cache:/usr/local/bundle/gems
env_file: .env
environment:
RAILS_ENV: development
networks:
- app-network
entrypoint: ./script/sidekiq-entrypoint.sh
webserver:
build:
context: .
dockerfile: Dockerfile-nginx-dev
ports:
- "80:80"
depends_on:
- app
networks:
- app-network
memcached:
image: memcached:1.6.6-alpine
networks:
- app-network
volumes:
db_data:
gem_cache:
networks:
app-network:
driver: bridge