-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
54 lines (51 loc) · 1.06 KB
/
compose.yml
File metadata and controls
54 lines (51 loc) · 1.06 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
services:
nginx:
image: nginx:alpine
ports:
- "86:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./code:/var/www/html
networks:
- goals_php_web
depends_on:
- frontend
frontend:
build:
#DIRECTORY CONTEXT
context: ./build/php
#PATH TO DIR WHERE IS THE DOCKERFILE
dockerfile: Dockerfile
#ADD ADDITIONAL CONTEXT TO USE IN DOCKERFILE WITH --from=name
additional_contexts:
resource_code: ./code
#BUILD ARGUMENTS
args:
PHP_VERSION: "8.3-fpm"
expose:
- 9000
ports:
- "5173:5173"
networks:
- goals_php_web
- goals_db_php
volumes:
- ./code:/var/www/html
depends_on:
- db_postgres
db_postgres:
image: postgres
shm_size: 125mb
networks:
- goals_db_php
ports:
- "5433:5432"
env_file:
- ./prod.env
volumes:
- ./db_postgres_volume:/var/lib/postgresql/data
networks:
goals_php_web:
driver: bridge
goals_db_php:
driver: bridge