Skip to content

Commit 3d8fd32

Browse files
committed
moved docker-compose files into utils/docker
1 parent 11031d9 commit 3d8fd32

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed
File renamed without changes.

utils/docker/Dockerfile.dev

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ RUN curl -o /tmp/composer-setup.php "https://getcomposer.org/installer"; \
2020
&& groupadd --gid ${gid} node \
2121
&& useradd --uid ${uid} --gid node --shell /bin/bash --create-home node
2222

23-
ENV APACHE_RUN_USER=node
24-
ENV APACHE_RUN_GROUP=node
23+
ENV APACHE_RUN_USER=node APACHE_RUN_GROUP=node
2524

2625
VOLUME /var/www/html/
2726

utils/docker/Readme.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
There are two Dockerfiles bundled in the repository - one for development, one for production deployment.
44

5-
To build the production container use:
5+
### Production
6+
7+
To build the production container first go to utils/docker directory, then use:
68
```
79
docker-compose build --no-cache --pull
810
```
@@ -16,7 +18,9 @@ Selfoss web interface will be available at http://localhost:8390
1618

1719
Selfoss config is mounted in a separate volume, so your custom settings should survive reboot.
1820

19-
To run the development container first copy .env.dist into .env and make sure the UID and GID matches your own user and group ID, otherwise the dev scripts will create files with wrong access rights.
21+
### Development
22+
23+
To run the development container first make sure you are in utils/docker directory, then copy .env.dist into .env and make sure the UID and GID matches your own user and group ID, otherwise the dev scripts will create files with wrong access rights.
2024
```
2125
cat .env.dist | sed 's/UID=1000/UID='$(id -u)'/' | sed 's/GID=1000/GID='$(id -g)'/' > .env
2226
```

docker-compose.dev.yml renamed to utils/docker/docker-compose.dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ version: "3"
33
services:
44
# clean build with `docker-compose -f docker-compose.dev.yml build --no-cache --pull app`
55
app:
6+
image: selfoss/selfoss-dev
67
build:
78
args:
89
uid: ${UID}
910
gid: ${GID}
10-
context: .
11+
context: ../..
1112
dockerfile: ./utils/docker/Dockerfile.dev
1213
volumes:
1314
- .:/var/www/html/

docker-compose.yml renamed to utils/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
app:
66
image: selfoss/selfoss
77
build:
8-
context: .
8+
context: ../..
99
dockerfile: ./utils/docker/Dockerfile
1010
volumes:
1111
- config:/var/www/html/config/

0 commit comments

Comments
 (0)