-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
92 lines (89 loc) · 2.15 KB
/
docker-compose.dev.yml
File metadata and controls
92 lines (89 loc) · 2.15 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
86
87
88
89
90
91
92
version: "3.4"
services:
proxy:
image: caddy:2.7.6-alpine
restart: unless-stopped
network_mode: host
volumes:
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- compsole-caddy-data:/data
- compsole-caddy-config:/config
env_file: .env
# ui:
# build:
# context: ./ui
# dockerfile: ./Dockerfile
# ports:
# - 80:80
# restart: unless-stopped
# networks:
# - compsole-backend
# # depends_on:
# # - backend
# volumes:
# - /app/node_modules/
# 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=false
# - DEFAULT_ADMIN_USERNAME=compsole
# - DEFAULT_ADMIN_PASSWORD=compsole
# - GIN_MODE=debug # 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
ports:
- 5432:5432
restart: unless-stopped
networks:
- compsole-backend
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
volumes:
- redis-data:/data
ports:
- "6379:6379"
volumes:
compsole-db:
driver: local
redis-data:
driver: local
compsole-caddy-data:
driver: local
compsole-caddy-config:
networks:
compsole-backend:
driver: bridge