-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.12 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
services:
opsie-server:
image: opsie/server:dev
container_name: opsie-server
build:
context: ./server
dockerfile: Dockerfile
ports:
- "2121:5000"
volumes:
- ./server:/app
- /app/node_modules
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: true
PORT: 5000
DATABASE_URL: postgres://opsie:opsie@postgres:5432/opsie
depends_on:
- opsie-pg
opsie-control-panel:
image: opsie/control-panel:dev
container_name: opsie-control-panel
build:
context: ./control-panel
dockerfile: Dockerfile
ports:
- "1212:3000"
volumes:
- ./control-panel:/app
- /app/node_modules
environment:
NEXT_PUBLIC_API_URL: http://127.0.0.1:2121
WATCHPACK_POLLING: true
depends_on:
- opsie-server
opsie-pg:
image: postgres:16
container_name: opsie-pg
ports:
- "5432:5432"
environment:
POSTGRES_USER: opsie
POSTGRES_PASSWORD: opsie
POSTGRES_DB: opsie
volumes:
- opsie_pg_data:/var/lib/postgresql/data
volumes:
opsie_pg_data:
name: opsie_pg_data