-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (69 loc) · 1.68 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
version: '3.8'
services:
database:
container_name: mariadb
image: mariadb
environment:
- MYSQL_DATABASE=invoice
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/dbpassword
volumes:
- dbdata:/var/lib/mysql
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
expose:
- 3306
secrets:
- dbpassword
phpmyadmin:
image: phpmyadmin/phpmyadmin
tty: true
links:
- database
environment:
PMA_HOST: database
PMA_PORT: 3306
PMA_ARBITRARY: 1
ports:
- 8081:80
rails:
container_name: rails7
build: rails
tty: true
# RUN git clone https://[email protected]/ouaziz/rails_api_jwt.git app
# command: cd /app && rails db:drop && rails db:create && rails db:migrate && rails db:seed
# command: bash -c "bundle install"
depends_on:
- database
- redis
ports:
- "3001:3000"
volumes:
- ./rails/assetsMgmt:/app
env_file:
- .env
environment:
RAILS_ENV: development
redis:
container_name: redis721
image: redis:7.2.1
# sidekiq:
# build:
# context: .
# dockerfile: Dockerfile
# depends_on:
# - rails
# - database
# - redis
# volumes:
# - ./rails/app:/app
# # - ./script_api/gem_cache:/usr/local/bundle/gems
# # - ./script_api/node_modules:/app/node_modules
# env_file: ./rails/app/.env
# environment:
# RAILS_ENV: development
# entrypoint: ./entrypoints/sidekiq-entrypoint.sh
volumes:
dbdata:
railsapp:
secrets:
dbpassword:
file: database/password.txt