-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
47 lines (47 loc) · 1.19 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
version: '3.4'
services:
frontend:
build:
dockerfile: ./docker/frontend.Dockerfile
context: .
# target: base
environment:
NODE_ENV: debug
GOOGLE_ANALYTICS_ID: "${GOOGLE_ANALYTICS_ID:-''}"
volumes:
- static:/usr/local/app/dist
- ./frontend/src:/usr/local/app/src
- ./frontend/webpack.config.js:/usr/local/app/webpack.config.js:ro
- ./frontend/package.json:/usr/local/app/package.json:ro
backend:
build:
dockerfile: ./docker/backend.Dockerfile
context: .
# target: base
volumes:
- static:/data/static/
- ./backend:/go/src/automoderation
ports:
- "${PORT:-8080}:80"
environment:
POSTGRES_URL: postgres://postgres@postgres:5432/postgres?sslmode=disable
REDIS_PASSWORD: ""
REDIS_URL: "redis:6379"
REDIS_DB: 0
migrate:
volumes:
- ./backend/migrations:/migrations
image: migrate/migrate:v4.7.0
entrypoint: []
command: [
'./migrate',
'-path', '/migrations/',
'-database', 'postgres://postgres@postgres:5432/postgres?sslmode=disable',
'up',
]
postgres:
image: postgres:9.6-alpine
redis:
image: redis
volumes:
static: