File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ You can use docker-compose file (`docker-compose.yml`) that is described below t
26
26
Default way with PostgreSQL database:
27
27
28
28
```
29
- docker-compose -f docker-compose.yml up -d
29
+ docker-compose -f docker-compose.yml up -d (--build)
30
30
```
31
31
32
32
Or if you want to use it with MySQL (MariaDB):
33
33
34
34
```
35
- docker-compose -f docker-compose.mysql.yml up -d
35
+ docker-compose -f docker-compose.mysql.yml up -d (--build)
36
36
```
37
37
38
38
If you want to up more worker just use this command, when the PHP Censor stack is already started (but you can do it on
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ RUN apk add --no-cache $PHPIZE_DEPS && \
16
16
RUN docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo) pdo pdo_mysql pdo_pgsql ldap zip bcmath && \
17
17
docker-php-ext-enable xdebug
18
18
19
- RUN git clone -b $PHPCENSOR_VERSION --single-branch --depth 1 https://github.com/php-censor/php-censor.git .
19
+ RUN git clone -b $PHPCENSOR_VERSION --single-branch --depth 1 https://github.com/php-censor/php-censor.git . && chmod +x ./bin/console
20
20
21
21
RUN composer install
22
22
@@ -32,7 +32,7 @@ ENV DB_TYPE=mysql
32
32
ENV DB_NAME=phpcensor
33
33
ENV DB_USER=phpcensor
34
34
ENV DB_PASS=changethepass
35
- ENV SITE_URL=http://phpcensor.local
35
+ ENV SITE_URL=http://phpcensor.localhost
36
36
ENV BEANSTALK_HOST=localhost
37
37
ENV BEANSTALK_QUEUE_NAME=phpcensor
38
38
Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ parse_args() {
33
33
# Entrypoint
34
34
main () {
35
35
parse_args
36
-
36
+
37
37
if [ ! -f ./app/config.yml ]; then
38
38
envsubst < /config.tmpl.yml > ./app/config.yml
39
39
fi
40
-
40
+
41
41
wait_for_external_services
42
42
43
43
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ RUN apk add --no-cache $PHPIZE_DEPS && \
16
16
RUN docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo) pdo pdo_mysql pdo_pgsql zip bcmath && \
17
17
docker-php-ext-enable xdebug
18
18
19
- RUN git clone -b $PHPCENSOR_VERSION --single-branch --depth 1 https://github.com/php-censor/php-censor.git .
19
+ RUN git clone -b $PHPCENSOR_VERSION --single-branch --depth 1 https://github.com/php-censor/php-censor.git . && chmod +x ./bin/console
20
20
21
21
RUN composer install
22
22
You can’t perform that action at this time.
0 commit comments