-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (66 loc) · 1.43 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
65
66
67
68
69
70
version: "3.7"
services:
web:
build:
context: .
dockerfile: Dockerfile
command: cargo run
ports:
- "4000:4000"
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
environment:
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
- AWS_REGION=julia-home
- AWS_DYNAMODB_ENDPOINT=http://dynamodb:8000
- DATABASE_URL=postgres://auth:secret@172.21.1.15/auth_db
- RUST_LOG=debug
- CARGO_HOME=/var/www/
volumes:
- .:/var/www/app
depends_on:
- dynamodb
- postgres
links:
- dynamodb
- postgres
networks:
internal_net:
ipv4_address: 172.21.1.2
dynamodb:
container_name: "dynamodb"
image: amazon/dynamodb-local
ports:
- "8000:8000"
networks:
internal_net:
ipv4_address: 172.21.1.1
environment:
- ./Djava.library.path=./DynamoDBLocal_lib
volumes:
- dynamodata:/home/dynamodblocal/
working_dir: /home/dynamodblocal/
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ."
postgres:
container_name: "postgres"
image: postgres
ports:
- "5432:5432"
networks:
internal_net:
ipv4_address: 172.21.1.15
environment:
- POSTGRES_USER=auth
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=auth_db
networks:
internal_net:
ipam:
driver: default
config:
- subnet: 172.21.0.0/16
volumes:
dynamodata: