-
-
Notifications
You must be signed in to change notification settings - Fork 346
/
docker-compose.yml
65 lines (61 loc) · 1.88 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
# This file contains a *development* configuration for running Octobox.
#
# * You can use this file as-is to give Octobox a try on your local machine; it pulls
# images from Docker Hub and uses the default 'development' environment.
#
# * You can use this file as an example for your own production configuration, either
# by overriding it or just creating your own from scratch. 'docker-compose.override.yml'
# is gitignored for your convenience.
#
# * Similarly, if you're a developer who has cloned the Octobox repository to
# actively develop Octobox, you can override this file by adding the following to
# a docker-compose.override.yml:
#
# version: '3'
# services:
# app:
# build:
# context: .
# dockerfile: Dockerfile
#
# This will build your own image from your local filesystem to test changes.
# Using `$ docker-compose up` will automatically merge the override file in to
# this one.
#
version: '3'
services:
app:
image: octoboxio/octobox:latest
ports:
- "3000:3000"
environment:
- RAILS_ENV=development
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- OCTOBOX_DATABASE_NAME=postgres
- OCTOBOX_DATABASE_USERNAME=postgres
- OCTOBOX_DATABASE_PASSWORD=development
- OCTOBOX_DATABASE_HOST=database.service.octobox.internal
- REDIS_URL=redis://redis.service.octobox.internal
networks:
- internal
depends_on:
- database.service.octobox.internal
- redis.service.octobox.internal
database.service.octobox.internal:
image: postgres:16-alpine
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- internal
environment:
- POSTGRES_PASSWORD=development
redis.service.octobox.internal:
image: redis:7-alpine
networks:
- internal
volumes:
pg_data:
networks:
internal:
driver: bridge