-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
72 lines (67 loc) · 1.51 KB
/
docker-compose.dev.yml
File metadata and controls
72 lines (67 loc) · 1.51 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
services:
dev_db:
image: postgres:16
hostname: postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
dev_cms:
build:
context: cms
dockerfile: docker/core/Dockerfile
hostname: cms
depends_on:
- "dev_db"
cgroup: host
privileged: true
environment:
PUID: 1000
PGID: 1000
TZ: Europe/Rome
CMS_PROXY_SERVICE_DISABLED: "true"
volumes:
- ./dev-config:/config
dev_backend:
build:
context: backend
dockerfile: docker/cmsocial/Dockerfile
hostname: backend
environment:
INITIALIZE_DEV_DB: "true"
depends_on:
- "dev_db"
- "dev_cms"
volumes:
- ./dev-config:/config
dev_frontend:
build:
context: .
dockerfile: tools/Dockerfile.dev
hostname: frontend
environment:
NEXT_PUBLIC_TRAINING_API_URL: http://dev.olinfo.it:8000/api
CAPTCHA_PUBLIC_KEY: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
CMS_DATABASE_URL: postgres://postgres@postgres:5432/cmsdb
CMS_CONTEST_ID: 1
depends_on:
- "dev_backend"
dev_old_frontend:
build:
context: backend
dockerfile: docker/cmsocial-web/Dockerfile
hostname: old_frontend
depends_on:
- "dev_backend"
dev:
image: nginx
hostname: dev.olinfo.it
depends_on:
- "dev_backend"
- "dev_frontend"
- "dev_old_frontend"
- "dev_cms"
ports:
- 8000:8000
environment:
NGINX_PORT: 8000
volumes:
- ./dev-config/nginx:/etc/nginx/conf.d