-
Notifications
You must be signed in to change notification settings - Fork 108
/
docker-compose.yml
66 lines (60 loc) · 1.2 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
version: '2.1'
services:
python:
image: gamification-engine:dev
build:
context: .
expose:
- 6543
volumes:
- ./gengine:/usr/src/app/gengine
- uwsgi_socket:/run/uwsgi/
depends_on:
- postgres
- memcached
networks:
- backend
environment:
- APP_DB_HOST=postgres
- APP_DB_PORT=5432
- APP_DB_USER=postgres
- APP_DB_PASSWORD=password
- APP_DB_NAME=gengine
- MODE=dev
nginx:
image: nginx:alpine
depends_on:
- python
volumes:
- ./docker-files/nginx-dev.conf:/etc/nginx/nginx.conf
- uwsgi_socket:/run/uwsgi/
ports:
- 9000:80
networks:
- backend
postgres:
image: postgres:11-alpine
networks:
- backend
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=gengine
- PGDATA=/pgdata
volumes:
- ./pgdata:/pgdata
memcached:
image: memcached:alpine
networks:
- backend
adminer:
image: adminer
ports:
- 6060:8080
networks:
- backend
networks:
backend:
volumes:
uwsgi_socket: