-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (62 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
74 lines (62 loc) · 1.31 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
74
version: "3"
include:
- path: docker-compose/bot.yml
project_directory: .
- path: docker-compose/server.yml
project_directory: .
services:
frontend:
build:
context: frontend
dockerfile: Dockerfile
container_name: frontend
volumes:
- ./frontend/src:/app/src
postgres:
image: postgres
env_file:
- ./.env
container_name: postgres
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
redis:
image: redis/redis-stack:latest
ports:
- "8001:8001"
expose:
- 6379
container_name: redis
volumes:
- redis_volume:/data
nginx:
container_name: nginx
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx
- ./backend/src/web/app/static:/www/data
depends_on:
- server
- frontend
ngrok:
image: ngrok/ngrok:latest
network_mode: host
container_name: ngrok
expose:
- 443
environment:
NGROK_AUTHTOKEN: 2ibfdY2tcsIyNHkUbJvkS8jspgM_83EGWAhJqnuHKVYEHmmfa
command: ["http", "--url=musical-pheasant-major.ngrok-free.app", "80"]
depends_on:
- nginx
# command: ngrok http 80
# - "http"
# -
# - "80"
volumes:
redis_volume: {}
pgdata: {}