-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
63 lines (58 loc) · 1.79 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
version: '3.7'
services:
artbot:
build:
context: .
dockerfile: Dockerfile
command: flask run -h 0.0.0.0
volumes:
- .:/usr/src/app
ports:
- 5001:5000
environment:
- FLASK_ENV=development
- FLASK_APP=web.app:create_app
- APP_SETTINGS=web.settings.DevConfig
- INITIAL_ADMIN_PASSWORD=TEMP
- DATABASE_URL=postgresql://postgres:postgres@artbot-db:5432/artbot_dev
- DATABASE_TEST_URL=postgresql://postgres:postgres@artbot-db:5432/artbot_test
- MAIL_SERVER=maildev
- MAIL_PORT=25
- AWS_SERVER=localstack
- AWS_PORT=4566
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=TEMP
- AWS_SECRET_ACCESS_KEY=TEMP
- IMAGE_BUCKET=dataimages
depends_on:
- artbot-db
- localstack
- maildev
artbot-db:
build:
context: ./db
dockerfile: Dockerfile
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
localstack:
image: localstack/localstack
ports:
- 4566:4566
environment:
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=TEMP #Should match above
- AWS_SECRET_ACCESS_KEY=TEMP
- SERVICES=s3
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
volumes:
- "./.localstack:/tmp/localstack"
- "./dev_deploy:/docker-entrypoint-initaws.d" #Runs startup scripts
maildev:
image: djfarrelly/maildev
ports:
- 1080:80