You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,26 @@ docker-compose down --volumes # to clean the content of the volumes
22
22
23
23
This can solve some issues, for example if you run `build` with a wrong config file.
24
24
25
+
### Compose files
26
+
27
+
This repository contains multiple docker-compose files that are [merged together](https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/) to define the services and their configurations for different environments (production, testing). The files are:
28
+
29
+
-`docker-compose.yml`: the main compose file that defines the services and their dependencies. This file is used as the base configuration for all environments.
30
+
-`docker-compose.override.yml`: the override compose file that extends the main compose file with additional configurations for development. It is automatically used by Docker Compose if present and no other compose files are specified. This file is used both for local development and for running the database deployment.
31
+
-`docker-compose.prod.yml`: the production compose file that extends the main compose file with production-specific configurations.
32
+
-`docker-compose.tests.yml`: the tests compose file that extends the main compose file with configurations for running tests. Used in `scripts/run-tests.sh` and CI.
33
+
34
+
If you run `docker-compose up` (or any other sub-command) without specifying a compose file, `docker-compose` will use the `docker-compose.yml` and `docker-compose.override.yml` files by default. If you want to run the production setup, use this command:
35
+
36
+
```bash
37
+
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
38
+
```
39
+
25
40
### First time setup:
26
41
27
42
```bash
43
+
# copy the example .env file and edit with your desired config
44
+
# .env.example.prod is for the production webserver
28
45
cp .env.example .env
29
46
docker-compose build
30
47
docker-compose up
@@ -145,7 +162,7 @@ docker run --rm \
145
162
146
163
```bash
147
164
# Make sure you dont have your neo4j running:
148
-
docker-compose -f production.yml down
165
+
docker-compose -f docker-compose.yml -f docker-compose.prod.yml down
0 commit comments