-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.57 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
services:
database:
container_name: database_infopanel
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: symfony_docker
MYSQL_USER: symfony
MYSQL_PASSWORD: symfony
ports:
- "4306:3306"
volumes:
- ./.development/mysql:/var/lib/mysql
networks:
- symfony
php:
container_name: backend_infopanel
build:
context: ./backend
ports:
- '9000:9000'
restart: always
volumes:
- ./backend:/var/www/backend
depends_on:
- database
networks:
- symfony
frontend:
container_name: frontend_infopanel
build:
context: ./frontend
dockerfile: Dockerfile_prod
ports:
- '5173:5173'
volumes:
- ./frontend:/var/www/
depends_on:
- php
networks:
- symfony
nginx:
container_name: nginx
image: nginx:stable-alpine
ports:
- '80:80'
- '8080:8080'
restart: always
volumes:
- ./frontend:/var/www/frontend
- ./backend:/var/www/backend
- ./.development/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- database
- frontend
networks:
- symfony
# httpd:
# container_name: httpd_infopanel
# ports:
# - '80:80'
# volumes:
# - ./frontend/dist:/usr/local/apache2/htdocs/
# image: 'httpd:latest'
# restart: always
# networks:
# - symfony
networks:
symfony:
driver: bridge