forked from City-of-Helsinki/parkkihubi
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
62 lines (58 loc) · 1.29 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
---
version: '3'
services:
runserver:
user: bew
image: parkkihubi-project-django-virtualenv
build: .
command: /home/bew/.venv/bin/python3 manage.py runserver 0.0.0.0:8000
ports:
- '8000:8000'
volumes:
- .:/home/bew/bew
links:
- postgresql
- memcached
environment:
# Project specific env vars for this project:
- DATABASE_URL=postgis://parkkihubi:parkkihubi@postgresql/parkkihubi
- HTTPS=off
- SECRET_KEY=not-empty
# Service level env vars:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- LC_LANG=en_US.UTF-8
- DJANGO_SETTINGS_MODULE=local_settings
# Infra env vars:
- PYTHONUNBUFFERED=1
- GIT_AUTHOR_EMAIL
- GIT_AUTHOR_NAME
- GIT_COMMITTER_EMAIL
- GIT_COMMITTER_NAME
networks:
- network
depends_on:
- postgresql
- memcached
stdin_open: true
tty: true
postgresql:
image: postgis/postgis:14-3.4
environment:
- POSTGRES_PASSWORD=parkkihubi
- POSTGRES_USER=parkkihubi
- POSTGRES_DB=parkkihubi
volumes:
- postgresql:/var/lib/postgresql/data
ports:
- 5432
networks:
- network
memcached:
image: memcached:1.6.14
networks:
- network
volumes:
postgresql:
networks:
network: