-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.62 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
# This is only an example file on how to use whereami_server.
# This example includes hosting files with nginx
version: '3'
services:
whereami:
image: ghcr.io/martilidad/whereami-server:angular-latest
links:
- postgresql:db
- redis:redis
depends_on:
- postgresql
- redis
expose:
- "8000"
environment:
- "DB_NAME=whereami"
- "DB_USER=whereami"
- "DB_PW=whereami"
- "DB_HOST=db"
- "REDIS_HOST=redis"
- "DEBUG=false"
- "ALLOWED_HOSTS=localhost"
# The free recurring monthly credit on the Maps Platform is more than enough to play self-hosted with friends, but you need a valid credit card.
# See https://developers.google.com/maps/gmp-get-started
# - "GOOGLE_API_KEY="
# required on intial start or you'd have to call 'manage.py createsuperuser' manually
- "INITIAL_SUPER_USER=user"
- "INITIAL_SUPER_PW=changeme"
# You can use the following if you want to let e.g. nginx host the static files
- "STATIC_ROOT=/var/www/whereami/static"
volumes:
- /var/www/whereami/static:/var/www/whereami/static
postgresql:
image: postgres
container_name: "whereami-postgresql"
environment:
- "POSTGRES_USER=whereami"
- "POSTGRES_PASSWORD=whereami"
- "POSTGRES_DB=whereami"
redis:
image: redis:5
expose:
- "6379"
nginx:
image: nginx:stable
ports:
- 80:80
depends_on:
- whereami
links:
- whereami:whereami
volumes:
- /var/www/whereami/static:/var/www/whereami/static
- ./nginx:/etc/nginx/conf.d