-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (63 loc) · 1.12 KB
/
docker-compose.yml
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
version: '3.8'
services:
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
image: backend
expose:
- "9000"
restart: always
volumes:
- ./backend:/var/www
depends_on:
- db
networks:
- dev
db:
image: postgres:16-alpine
env_file:
- ./backend/.env
expose:
- "5432"
ports:
- "5439:5432"
networks:
- dev
frontend:
build:
context: ./frontend
image: frontend
restart: always
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- dev
nginx:
image: nginx:stable-alpine
container_name: nginx
restart: always
ports:
- "8000:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./frontend:/var/www/frontend
- ./backend/public:/var/www/backend/public
depends_on:
- backend
- frontend
networks:
- dev
cron:
build:
context: ./backend
dockerfile: cron.dockerfile
container_name: cron
volumes:
- ./backend:/var/www/html
networks:
- dev
networks:
dev: