-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
91 lines (83 loc) · 1.89 KB
/
docker-compose.yaml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3'
services:
nuxt:
image: 'node:21-alpine3.18'
working_dir: /app
ports:
- 3000:3000
- 24678:24678
networks:
- webapp
volumes:
- ./nuxt:/app
command: >
sh -c "npm i &&
npm run dev -- -o"
symfony:
image: php:8.3.7RC1-zts-alpine3.19
working_dir: /app
ports:
- 8000:8000
networks:
- webapp
volumes:
- ./symfony:/app
command: >
sh -c "apk add --no-cache bash &&
curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.alpine.sh' | bash &&
apk add symfony-cli &&
apk add --no-cache postgresql-dev &&
docker-php-ext-install pdo pdo_pgsql &&
symfony console doctrine:migrations:migrate --no-interaction || true &&
symfony server:start"
depends_on:
- composer
- postgres
composer:
image: composer:2.7.4
working_dir: /app
volumes:
- ./symfony:/app
command: >
sh -c "composer install &&
tail -F anything"
postgres:
image: 'postgres:15.5-alpine3.18'
restart: always
environment:
- POSTGRES_DB=app
- POSTGRES_USER=app
- POSTGRES_PASSWORD=!ChangeMe!
ports:
- '5432:5432'
networks:
- webapp
volumes:
- postgres_data:/var/lib/postgresql/data
pg-admin:
image: dpage/pgadmin4:8.5
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_PASSWORD=adminpassword
ports:
- "8888:80"
networks:
- webapp
volumes:
- pgadmin_data:/var/lib/pgadmin
docs:
image: 'node:21-alpine3.18'
working_dir: /app
ports:
- 5173:5173
volumes:
- ./docs:/app
command: >
sh -c "npm i && npm run docs:dev"
networks:
webapp:
driver: bridge
volumes:
postgres_data:
pgadmin_data: