-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
90 lines (81 loc) · 1.59 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3"
services:
backend:
image: registry.gitlab.com/arpandaze/sikshyalaya/backend:latest
container_name: backend
environment:
- CONFIG_PATH=etc/dock.yml
depends_on:
- postgres
- redis
networks:
- internal
ports:
- "8080:80"
volumes:
- ./.files:/file_server
web:
image: registry.gitlab.com/arpandaze/sikshyalaya/web:latest
container_name: web
ports:
- "3001:80"
postgres:
image: postgres:13-alpine
container_name: postgres
networks:
- internal
volumes:
- persistent:/var/lib/postgres/data
env_file:
- .env
environment:
- PGDATA=/var/lib/postgres/data
ports:
- "5432:5432"
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
links:
- postgres:postgres
networks:
- internal
depends_on:
- postgres
env_file:
- .env
ports:
- "5050:80"
logging:
driver: none
redis:
image: redis:6-alpine
container_name: redis
env_file:
- .env
command: redis-server --requirepass ${REDIS_PASSWORD}
networks:
- internal
ports:
- "6379:6379"
file_server:
image: registry.gitlab.com/arpandaze/sikshyalaya/file_server:latest
container_name: file_server
networks:
- internal
volumes:
- ./.files:/content/
ports:
- "8081:80"
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog
networks:
- internal
ports:
- "8025:8025"
- "1025:1025"
volumes:
persistent:
networks:
internal:
driver: bridge