-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.17 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
version: "3.8"
services:
db:
image: mysql:8.0
container_name: mysql-db
environment:
MYSQL_DATABASE: deskapp
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- deskapp_net
backend:
build:
context: .
dockerfile: Dockerfile
container_name: symfony-backend
environment:
DATABASE_URL: mysql://root:@db:3306/deskapp
CORS_ALLOW_ORIGIN: http://localhost:3000
volumes:
- ./:/app
ports:
- "8000:8000"
depends_on:
- db
networks:
- deskapp_net
command: php -S 0.0.0.0:8000 -t public
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: nuxt-frontend
volumes:
- ./frontend:/app
ports:
- "3000:3000"
depends_on:
- backend
networks:
- deskapp_net
volumes:
db_data:
networks:
deskapp_net: