-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (67 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
74 lines (67 loc) · 1.52 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
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
USER_NAME: sail
USER_ID: 1000
image: getconnectx-app
container_name: getconnectx-app
restart: unless-stopped
working_dir: /var/www
volumes:
- /mnt/d/CODEVITS/Getconnectx.app:/var/www
networks:
- getconnectx
depends_on:
- db
- redis
web:
image: nginx:alpine
container_name: getconnectx-web
restart: unless-stopped
ports:
# - "80:80"
- "${APP_PORT:-80}:80" # Default 80, tapi bisa diganti lewat .env
volumes:
- /mnt/d/CODEVITS/Getconnectx.app:/var/www
- /mnt/d/CODEVITS/Getconnectx.app/docker/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- getconnectx
depends_on:
- app
db:
image: postgres:15-alpine
container_name: getconnectx-db
restart: unless-stopped
ports:
- "${DB_PORT:-5432}:5432" # Default 5432
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- dbdata:/var/lib/postgresql/data
networks:
- getconnectx
redis:
image: redis:alpine
container_name: getconnectx-redis
restart: unless-stopped
networks:
- getconnectx
mailpit:
image: axllent/mailpit
container_name: getconnectx-mailpit
restart: unless-stopped
ports:
- "8025:8025"
networks:
- getconnectx
networks:
getconnectx:
driver: bridge
volumes:
dbdata:
driver: local