forked from vteams/open-source-billing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 985 Bytes
/
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
version: '3'
services:
mysql:
image: mysql:8.0.31
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
# - MYSQL_HOST=localhost
- MYSQL_ROOT_PASSWORD=root
ports:
- '3307:3306'
expose:
- '3306'
adminer:
image: adminer
restart: always
ports:
- 8080:8080
redis:
image: redis
command: ["redis-server", "--bind", "redis"]
ports:
- "6350:6379"
sidekiq:
build:
context: .
dockerfile: ./docker/app/Dockerfile
depends_on:
- mysql
- redis
links:
- mysql:mysql
- redis
command: bundle exec sidekiq
web:
build:
context: .
dockerfile: ./docker/app/Dockerfile
ports:
- 3000:3000
depends_on:
- mysql
- redis
- sidekiq
# command: ["./docker/app/wait-for-it.sh", "mysql:3306", "--", "rails", "server", "-b", "0.0.0.0"]
environment:
- RAILS_ENV=${RAILS_ENV}