-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
45 lines (41 loc) · 997 Bytes
/
compose.yml
File metadata and controls
45 lines (41 loc) · 997 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
41
42
43
44
45
services:
backend:
build:
target: dev
context: './backend'
env_file: ./backend/.env
volumes: [./backend:/app]
ports: [8000:8000]
frontend:
build:
context: './frontend'
dockerfile: Dockerfile-dev
env_file: ./frontend/.env
working_dir: /var/www/html
volumes: [./frontend:/var/www/html]
ports: [3000:3000]
db:
build: ./postgres
shm_size: 1G
ports: [5432:5432]
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mws
PGUSER: postgres
volumes:
- ./postgres/data:/var/lib/postgresql/data
- ./postgres/scripts:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "pg_isready", "-h", "localhost", "-p", "5432"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
adminer:
image: dockette/adminer
environment: [UPLOAD=4096M]
ports: [9002:80]
cache:
image: redis:7-alpine
container_name: cache
command: [redis-server]