-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
66 lines (61 loc) · 1.42 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
services:
django-socio-grpc:
image: django-socio-grpc
tty: true
build:
context: .
dockerfile: Dockerfile
target: server
environment:
- DB_NAME=test
- DB_USER=test
- DB_PASSWORD=test_pw
- DB_HOST=test-database
- DB_PORT=5432
command: python test_utils/runserver.py
#command: python test_utils/load_tests.py
# command: /bin/bash
links:
- test-database
volumes:
- .:/opt/code
- ./test_utils:/opt/code/test_utils
# ports:
# - "7000:80"
networks:
django-socio-grpc-network:
django-socio-grpc-docs-build:
image: django-socio-grpc
build:
context: .
dockerfile: Dockerfile
target: docs
command: sh -c "cd docs && find . -name '*.rst' | entr -r -n make html"
volumes:
- .:/opt/code
networks:
django-socio-grpc-network:
django-socio-grpc-docs:
image: nginx:alpine
volumes:
- ./docs/_build/html:/usr/share/nginx/html
ports:
- "6001:80"
networks:
django-socio-grpc-network:
test-database:
image: library/postgres:15.3
ports:
- "5432:5432"
volumes:
- django-socio-grpc-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test_pw
networks:
django-socio-grpc-network:
networks:
django-socio-grpc-network:
volumes:
django-socio-grpc-data: {}