-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.dev.yml
83 lines (75 loc) · 1.83 KB
/
docker-compose.override.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.9"
services:
postgres:
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
PGUSER: admin
PGPASSWORD: admin
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql
postgress-initialisation:
image: postgres:13-alpine
environment:
PGHOST: postgres
PGUSER: admin
PGPASSWORD: admin
SECRET: 'my-secret'
command: psql -c "CREATE DATABASE testdb"
depends_on:
postgres:
condition: service_healthy
backend:
image: backend:dev
build:
context: backend/
dockerfile: Dockerfile
volumes:
- ./backend:/src/app
- ./backend/storage:/storage
environment:
DB_HOST: postgres
DB_NAME: testdb
DB_USER: admin
DB_PASSWORD: admin
PORT: 8080
SECRET: 'my-secret'
RESET: ${RESET:-'false'}
ADMIN_USERNAME: admin
ADMIN_PASSWORD: admin
ADMIN_EMAIL: admin@admin.admin
FILE_STORAGE: /storage/
PASSWORD_STRENGH_VALIDATION: 'false'
command: ./node_modules/nodemon/bin/nodemon.js -L /src/app/server.js
frontend:
image: frontend:dev
build:
context: frontend/
dockerfile: Dockerfile
restart: unless-stopped
environment:
PORT: 8080
PUBLIC_URL: ${PUBLIC_URL}
volumes:
- ./frontend/:/src/app/
nginx-frontend:
image: nginx:dev
ports:
- 80:80
environment:
SERVER_HOSTNAME: localhost
BACKEND_HOST: ${BACKEND_HOST:-backend}
LISTEN: 80
volumes:
- ./nginx/nginx-headers.conf:/etc/nginx/general-security-headers.conf
- ./nginx/site.dev.conf.template:/etc/nginx/conf.d/default.conf.template
mailhog:
image: mailhog/mailhog
restart: unless-stopped
ports:
- 1025:1025 # SMTP
- 8025:8025 # Wweb interface
volumes:
postgres_data: