-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
81 lines (78 loc) · 1.55 KB
/
docker-compose-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
version: '3.4'
# This is a WIP!
networks:
ecs_network:
driver: bridge
ipam:
config:
- subnet: "169.254.170.0/24"
gateway: 169.254.170.1
services:
ecs-local-endpoints:
image: amazon/amazon-ecs-local-container-endpoints
volumes:
- /var/run:/var/run
- $HOME/.aws/:/home/.aws/
environment:
AWS_PROFILE: "beep"
networks:
ecs_network:
ipv4_address: "169.254.170.2"
nginx:
build:
dockerfile: nginx.Dockerfile
target: prod
context: .
env_file:
- ./.env
ports:
- '8080:8080'
depends_on:
- ecs-local-endpoints
- php
networks:
ecs_network:
ipv4_address: "169.254.170.3"
php:
build:
dockerfile: php.Dockerfile
target: dev
context: .
env_file:
- ./.env
volumes:
- ./bee-health-data-portal/:/app
depends_on:
- ecs-local-endpoints
- db
networks:
ecs_network:
ipv4_address: "169.254.170.4"
worker:
build:
dockerfile: worker.Dockerfile
target: dev
context: .
env_file:
- ./.env
depends_on:
- ecs-local-endpoints
- db
networks:
ecs_network:
ipv4_address: "169.254.170.5"
db:
image: postgres
env_file:
- ./.env
environment:
POSTGRES_USER: $DB_USERNAME
POSTGRES_DB: $DB_DATABASE
POSTGRES_PASSWORD: $DB_PASSWORD
ports:
- "5432:5432"
depends_on:
- ecs-local-endpoints
networks:
ecs_network:
ipv4_address: "169.254.170.6"