-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (53 loc) · 1.25 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
version: "3.1"
services:
nginx:
image: nginx:latest
container_name: espresso
ports:
- "80:80"
volumes:
- espresso_web:/static
- espresso_uploads:/uploads
- ./config/nginx:/etc/nginx/conf.d
depends_on:
- web
web:
container_name: espresso-web
hostname: espresso-web
build:
context: src
dockerfile: Dockerfile
command: bash -c "python manage.py makemigrations && python manage.py migrate && gunicorn espresso.wsgi -b 0.0.0.0:8000"
image: ghcr.io/mickymots/obou-coffee:latest
volumes:
- ./src:/code
- espresso_web:/static
- espresso_uploads:/uploads
depends_on:
- db
environment:
- DJANGO_PRODUCTION=1
db:
image: postgres:10-alpine
container_name: espresso-db
hostname: espresso-db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: pgadmin
POSTGRES_PASSWORD: $pgadmin_pwd
POSTGRES_DB: espresso
# admin:
# image: adminer
# container_name: espresso-db-client
# hostname: espresso-db-client
# depends_on:
# - db
# ports:
# - 8080:8080
volumes:
pgdata:
espresso_web:
espresso_uploads: