-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
executable file
·74 lines (74 loc) · 1.57 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
66
67
68
69
70
71
72
73
74
version: '3'
services:
nginx:
image: nginx:latest
container_name: guzo-nginx
ports:
- "8000:8000"
volumes:
- ./guzo:/guzo
- ./config/nginx:/etc/nginx/conf.d
depends_on:
- web
environment:
TZ: Europe/Helsinki
postgres:
image: postgres
restart: always
container_name: guzo-postgres
ports:
- '5432:5432'
volumes:
- 'pgdata:/var/lib/postgresql/data/'
stdin_open: true
tty: true
environment:
TZ: Europe/Helsinki
web:
restart: always
container_name: guzo-web
image: guzo-web-image
build:
context: ./tools/web
dockerfile: ${PWD}/Dockerfile
volumes:
- ./guzo:/guzo
expose:
- '8000'
links:
- postgres
- memcache
- redis
command: bash -c 'python manage.py makemigrations && python manage.py migrate && gunicorn prod.wsgi 0.0.0.0:8001'
depends_on:
- postgres
extra_hosts:
- 'www.guzo.dev:127.0.0.1'
environment:
VIRTUAL_HOST: www.guzo.dev
HTTPS_METHOD: noredirect
TZ: Europe/Helsinki
memcache:
image: 'memcached:latest'
container_name: guzo-memcache
command: memcached
environment:
TZ: Europe/Helsinki
pgadmin:
image: fenglc/pgadmin4
container_name: guzo-pgadmin
links:
- 'postgres:postgres'
ports:
- '5050:5050'
environment:
TZ: Europe/Helsinki
redis:
restart: always
image: 'redis:alpine3.11'
container_name: guzo-redis
command: redis-server
environment:
TZ: Europe/Helsinki
volumes:
pgdata: null