-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
58 lines (54 loc) · 1.18 KB
/
docker-compose-dev.yml
File metadata and controls
58 lines (54 loc) · 1.18 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
55
56
57
58
version: '3.8'
services:
api-build:
container_name: ionicapp_api_build
restart: "no"
build:
context: docker/api
dockerfile: ./Dockerfile
user: "node"
tty: true
volumes:
- ./:/app
command: >
bash -c "npm ci
&& rm -rf dist
&& npm run build"
api-run:
container_name: ionicapp_api_run
restart: unless-stopped
depends_on:
- postgres
- redis
build:
context: docker/api
dockerfile: ./Dockerfile
user: "node"
tty: true
volumes:
- ./:/app
ports:
- ${PORT}:3000
- ${DEBUG_PORT}:9229
command: ["npm", "run", "start:prod"]
postgres:
container_name: ionicapp_postgres
restart: unless-stopped
build:
dockerfile: docker/postgres/Dockerfile
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
ports:
- ${DB_PORT}:5432
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
redis:
container_name: ionicapp_redis
restart: unless-stopped
image: redis:alpine
ports:
- ${REDIS_PORT}:6379
volumes:
- ./docker/redis/data:/data