-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.dev.yml
57 lines (55 loc) · 1.36 KB
/
docker-compose.dev.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
x-vol-args: &args
volumes:
- ./.material:/app/.material
services:
db:
image: postgres
restart: always
shm_size: 128mb
environment:
POSTGRES_PASSWORD: super-secret-password
POSTGRES_USER: postgres
ports:
- "5432:5432"
volumes:
- dev-data:/var/lib/postgresql/data
gutenberg:
image: gutenberg-dev
build:
context: .
dockerfile: Dockerfile
target: builder
args:
CACHE_BUST: ${CACHE_BUST}
MATERIAL_METHOD: "pull"
MATERIAL_DIR: ".material"
YAML_TEMPLATE: "config/oxford.yaml"
command: "yarn dev"
volumes:
- node-modules:/app/node_modules
- ./.material:/app/.material
- ./config:/app/config
- ./components:/app/components
- ./lib:/app/lib
- ./pages:/app/pages
- ./public:/app/public
- ./scripts:/app/scripts
- ./styles:/app/styles
- ./.env:/app/.env
- ./next.config.js:/app/next.config.js
- ./cypress.config.ts:/app/cypress.config.ts
- ./postcss.config.js:/app/postcss.config.js
- ./tailwind.config.js:/app/tailwind.config.js
ports:
- "3000:3000"
links:
- db
<<: *args
depends_on:
db:
condition: service_started
environment:
DATABASE_URL: postgresql://postgres:super-secret-password@db:5432
volumes:
dev-data:
node-modules: