-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 993 Bytes
/
docker-compose.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
services:
db:
image: postgres:alpine
environment:
POSTGRES_USER: gads
POSTGRES_PASSWORD: mysecret
POSTGRES_DB: gads
volumes:
- db-data:/var/lib/postgresql/data
ports:
- 5432:5432
container_name: gads-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
container_name: gads-app
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
container_name: gads-frontend
working_dir: /frontend
entrypoint:
- "/bin/sh"
- "-c"
- "chmod +x /frontend/bin/frontend.sh && sh /frontend/bin/frontend.sh"
volumes:
db-data: