forked from CSSAInformationDepartment/myCSSA
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (65 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
73 lines (65 loc) · 1.39 KB
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
67
68
69
70
71
72
73
version: '3.6'
services:
db: ## Remove in production
image: postgres:10.6-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: aiuh489ieu19vc*4
POSTGRES_DB: myCSSA
ports:
- 5432:5432
networks:
- data_link
nginx:
image: nginx:stable-alpine
restart: unless-stopped
ports:
- 8000:80
volumes:
- .:/code
- ./config/nginx:/etc/nginx/conf.d
- ./data/static:/static
- ./data/media:/media
networks:
- cssa_router
redis:
container_name: 'redis'
command: redis-server /usr/local/etc/redis/redis.conf
image: 'redis:5.0.4'
ports:
- 6379:6379
volumes:
- ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- data_link
cssanet:
image: cssanet
container_name: CSSAnet
environment:
DJANGO_SETTINGS_MODULE: CSSANet.settings.dev
volumes:
- ./src:/code
- ./data/static:/static
- ./data/media:/media
build:
context: .
dockerfile: Dockerfile
command: /usr/bin/supervisord -c /etc/supervisord.conf
expose:
- 8000
depends_on:
- nginx
- db
- redis
networks:
- cssa_router
- data_link
volumes:
postgres_data:
networks:
cssa_router:
driver: bridge
data_link:
driver: bridge