-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (78 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (78 loc) · 1.65 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
services:
db:
image: postgres:15
container_name: syscare-db
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- "54545:5432"
volumes:
- pg_database:/var/lib/postgresql/data
networks:
- syscare_network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin -d db" ]
interval: 5s
timeout: 5s
retries: 5
db-admin:
image: adminer
container_name: syscare-adminer
restart: always
ports:
- "8993:8993"
command: php -S 0.0.0.0:8993 -t /var/www/html
environment:
ADMINER_DEFAULT_SERVER: db:5432
volumes:
- ./adminer.css:/var/www/html/adminer.css
depends_on:
- db
networks:
- syscare_network
api:
build: ./server
image: syscare-api-img
container_name: syscare-api
restart: always
ports:
- "8798:8798"
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: admin
DB_PASS: password
DB_NAME: db
PORT: 8798
JWT_SECRET: change_this_secret_key_in_production
UPLOAD_DIR: /app/public/uploads
volumes:
- ./public/uploads:/app/public/uploads
depends_on:
db:
condition: service_healthy
networks:
- syscare_network
frontend:
build: .
image: syscare-frontend-img
container_name: syscare-frontend
restart: always
ports:
- "5173:5173"
volumes:
- ./src:/app/src
- ./public:/app/public
depends_on:
- api
networks:
- syscare_network
networks:
syscare_network:
driver: bridge
volumes:
pg_database:
driver: local