-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·114 lines (102 loc) · 2.74 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
###########################################################################
# Universidad Nacional Arturo Jauretche #
# Instituto de Ingeniería y Agronomía -Ingeniería en Informática #
# Práctica Profesional Supervisada Nro 12 - Segundo cuatrimestre de 2018 #
# <<Gestión Integral de Alumnos Para el Proyecto Fines>> #
# Tutores: #
# - UNAJ: Dr. Ing. Morales, Martín #
# - ORGANIZACIÓN: Ing. Cortes Bracho, Oscar #
# - ORGANIZACIÓN: Mg. Ing. Diego Encinas #
# - TAPTA: Dra. Ferrari, Mariela #
# Autor: Ap. Daniel Rosatto <danielrosatto@gmail.com> #
# Archivo GIDAPPF/docker-compose.yml #
###########################################################################
# Deploy:
# $ docker-compose up --build -d && \
# docker-compose exec --user "$(id -u):$(id -g)" website rails db:setup && \
# sudo rm -R storage/!(seeds)
# Restart after poweroff:
# $ docker-compose up -d
# Populate db:
# $ docker-compose exec --user "$(id -u):$(id -g)" website rake db:seed:populate_show
# Stop and clean all :
# $ docker-compose down -v
# Stop:
# $ docker-compose down
version: '3'
services:
postgres:
image: 'postgres:alpine'
volumes:
- 'postgres:/var/lib/postgresql/data'
env_file:
- '.env'
redis:
image: 'redis:alpine'
env_file:
- '.env'
command: redis-server --requirepass $REDIS_PASSWORD
volumes:
- 'redis:/data'
website:
depends_on:
- 'postgres'
- 'redis'
build: .
dns:
- 1.0.0.1
- 8.8.8.8
- 8.8.4.4
ports:
- '3000:3000/tcp'
- '25:25/tcp'
- '465:465/tcp'
- '587:587/tcp'
volumes:
- '.:/app'
env_file:
- '.env'
config_tzdata:
build: .
command: bundle exec rake configtzdata:call_sys
volumes:
- .:/app
depends_on:
- 'website'
- 'sidekiq'
- 'postgres'
env_file:
- '.env'
schedule_init_job:
build: .
command: bundle exec rake documents_collector:schedule_init
volumes:
- .:/app
depends_on:
- 'config_tzdata'
env_file:
- '.env'
sidekiq:
depends_on:
- 'postgres'
- 'redis'
build: .
command: sidekiq -C config/sidekiq.yml.erb
volumes:
- '.:/app'
env_file:
- '.env'
cable:
depends_on:
- 'redis'
build: .
command: puma -p 28080 cable/config.ru
ports:
- '28080:28080'
volumes:
- '.:/app'
env_file:
- '.env'
volumes:
redis:
postgres: