-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
64 lines (58 loc) · 1.29 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.8'
services:
frontend:
labels:
shipyard.route: '/'
build: 'frontend'
environment:
CI: 'true'
DANGEROUSLY_DISABLE_HOST_CHECK: 'true'
env_file:
- frontend/frontend.env
volumes:
- './frontend/src:/app/src'
- './frontend/public:/app/public'
ports:
- '3000:3000'
postgres:
image: 'postgres:9.6.20-alpine'
restart: always
volumes:
- 'postgres:/var/lib/postgresql/data'
environment:
- POSTGRES_DB=app
- POSTGRES_USER=obscure-user
- POSTGRES_PASSWORD=obscure-password
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- '5432'
backend:
labels:
shipyard.init: 'npx sequelize-cli db:migrate'
shipyard.route: '/api'
build:
context: 'backend'
environment:
DB_USER: 'obscure-user'
DB_PASSWORD: 'obscure-password'
DB_NAME: 'app'
DB_HOST: 'postgres'
DB_PORT: '5432'
LOCALSTACK_HOST: 'localstack'
depends_on:
- 'postgres'
ports:
- '8080:8080'
volumes:
- './backend/src:/app/src'
localstack:
image: 'localstack/localstack'
environment:
- DATA_DIR=/var/lib/localstack
volumes:
- 'localstack:/var/lib/localstack'
ports:
- '4566'
volumes:
postgres:
localstack: