-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (82 loc) · 1.98 KB
/
docker-compose.yml
File metadata and controls
85 lines (82 loc) · 1.98 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
75
76
77
78
79
80
81
82
83
84
85
version: "3.4"
services:
ui:
build:
context: ./ui
# Use "./Dockerfile" instead for no SSL
dockerfile: ./Dockerfile.ssl
ports:
- 80:80
- 443:443
restart: unless-stopped
networks:
- compsole-backend
volumes:
- /app/node_modules/
- ./ui/docker_files/caddyfile:/etc/caddy/Caddyfile
- ./.caddy/data:/data
- ./.caddy/config:/config
environment:
- DOMAIN=compsole.example.com
backend:
build:
context: .
dockerfile: ./Dockerfile
restart: unless-stopped
networks:
- compsole-backend
# ports:
# - 8080:8080
depends_on:
- db
environment:
# Server
- GRAPHQL_HOSTNAME=localhost
- CORS_ALLOWED_ORIGINS=http://localhost,http://localhost:3000
- PORT=:8080
# Disable this for no SSL
- HTTPS_ENABLED=true
- DEFAULT_ADMIN_USERNAME=compsole
- DEFAULT_ADMIN_PASSWORD=compsole
- GIN_MODE=release # set to 'debug' for development
# Timeout in minutes
- COOKIE_TIMEOUT=180
# Window is in hours (time after invalid session to refresh REST tokens)
- REFRESH_WINDOW=8
# Change this to a randomly generated value (>= 64 bytes encouraged)
- JWT_SECRET=secret
# Database
- PG_URI=postgresql://compsole:compsole@db/compsole
# Redis
- REDIS_URI=redis:6379
- REDIS_PASSWORD=
db:
image: library/postgres:14.4-alpine
restart: unless-stopped
networks:
- compsole-backend
# ports:
# - 5432:5432
volumes:
- compsole-db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=compsole
- POSTGRES_PASSWORD=compsole
- POSTGRES_DB=compsole
redis:
image: redis:5.0.7
restart: unless-stopped
networks:
- compsole-backend
# ports:
# - "6379:6379"
volumes:
- redis-data:/data
volumes:
compsole-db:
driver: local
redis-data:
driver: local
networks:
compsole-backend:
driver: bridge