-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (36 loc) · 924 Bytes
/
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
version: '2'
services:
# web server
nginx:
restart: always
image: nginx:1.23-alpine
ports:
- 8000:80 # - 80:80
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/src/static2
# gunicorn server
server:
restart: unless-stopped
build:
context: .
dockerfile: ./docker/vmbloggr/Dockerfile
entrypoint: /app/docker/vmbloggr/server-entrypoint.sh
volumes:
- static_volume:/app/src/static2
expose:
- 8000
env_file:
- ./src/.env
# database
db:
image: postgres:13.0-alpine
restart: unless-stopped
env_file:
- ./src/.env
expose:
- 5432
volumes:
static_volume: {}
log_volume: {}
postgres_data: {}