forked from ctrlo/GADS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-dev.yml
More file actions
40 lines (40 loc) · 847 Bytes
/
compose-dev.yml
File metadata and controls
40 lines (40 loc) · 847 Bytes
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
services:
db:
image: postgres:alpine
environment:
POSTGRES_USER: gads
POSTGRES_PASSWORD: mysecret
POSTGRES_DB: gads
ports:
- 5432:5432
container_name: db
expose:
- 5432
app:
entrypoint:
- "/bin/sh"
- "-c"
- "chmod +x /app/bin/docker.sh && sh /app/bin/docker.sh admin@localhost qwedsa localhost"
build:
context: .
dockerfile: Dockerfile.dev
ports:
- 3000:3000
expose:
- 3000
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- .:/app
depends_on:
- db
frontend:
image: node:16-alpine
volumes:
- .:/frontend
working_dir: /frontend
entrypoint:
- "/bin/sh"
- "-c"
- "chmod +x /frontend/bin/frontend.sh && sh /frontend/bin/frontend.sh"