-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (58 loc) · 1.22 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.3'
services:
nginx:
image: nginx:alpine
container_name: "nginx"
# Add our nginx configuration
volumes:
- ./nginx/:/etc/nginx/conf.d/
- ./:/var/www/
ports:
- 80:80
links:
- backend:backend
- swagger:swagger
db:
image: postgres:alpine
container_name: "postgres"
# Ports allows us to access the database directly
# It should be disabled on production
ports:
- 5432:5432
expose:
- 5432
# Setup the default user/pass
environment:
POSTGRES_DB: kestrel
POSTGRES_USER: user
POSTGRES_PASSWORD: password
backend:
build:
context: ./
container_name: "backend"
restart: always
links:
- db:database
- redis:localRedis
volumes:
- ./:/var/www/
env_file:
- .env
ports:
- 8000:8000
user: root
command: /bin/sh -c './docs/sphinx.sh & uwsgi --ini /var/www/app/uwsgi.ini --py-autoreload 1'
redis:
image: redis:alpine
container_name: "redis"
ports:
- 6379:6379
expose:
- 6379
swagger:
image: swaggerapi/swagger-ui
container_name: "swagger"
expose:
- 8080
environment:
API_URL: http://localhost/openapi