forked from lewis-kori/budgeting-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.26 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
version: '3.5'
services:
web:
build: .
container_name: budgeting_django
restart: unless-stopped
volumes:
- .:/code
- ./gunicorn/logs:/gunicorn/logs
- static:/code/static
- media:/code/media
depends_on:
- postgres
postgres:
build: ./postgres
container_name: budgeting_db
restart: unless-stopped
expose:
- "5432"
environment:
LC_ALL: ${LC_ALL}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- pgdata:/var/lib/postgresql/data/
pgadmin:
image: dpage/pgadmin4
container_name: budgeting_pg_admin
depends_on:
- postgres
ports:
- "5055:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
restart: always
nginx:
restart: always
build: ./nginx/
container_name: budgeting_web_server
volumes:
- ./nginx/:/etc/nginx/conf.d
- ./nginx/logs/:/code/logs
- static:/code/static
- media:/code/media
ports:
- "127.0.0.1:8099:80"
links:
- web
volumes:
pgdata:
media:
static: