-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yml
64 lines (58 loc) · 1.53 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
services:
api:
build: .
environment:
- BUILD_ENV=${BUILD_ENV}
- BATCHIEPATCHIE_CONFIG=batchiepatchie-dockercompose-config.toml
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
- .:/go/src/github.com/AdRoll/batchiepatchie
ports:
- "9999:9999"
- "5454:5454"
privileged: true # Privileges are dropped by docker_run.sh, privileges needed for user setup in local development
ulimits:
nproc: 65535
nofile:
soft: 90000
hard: 90000
depends_on:
postgres:
condition: service_healthy
migrations:
condition: service_completed_successfully
migrations:
build: .
volumes:
- .:/go/src/github.com/AdRoll/batchiepatchie
command: sh -c 'cd migrations && goose postgres "user=postgres dbname=postgres sslmode=disable host=postgres password=123456" up'
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:9.6.2-alpine
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: 123456
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 5s
retries: 5
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend/src:/opt/frontend/src
- ./frontend/public:/opt/frontend/public
ports:
- "8080:8080"
command: npm run dev
networks:
default:
ipam:
config:
- subnet: "172.29.0.0/16"