-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 886 Bytes
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
networks:
main:
services:
postgres:
build:
dockerfile: pg.Dockerfile
ports:
- "5435:5432"
networks:
- main
command: ["postgres", "-c", "shared_preload_libraries=pg_cron"]
environment:
- POSTGRES_USER=accounts
- POSTGRES_PASSWORD=password
volumes:
- ./misc/create_additional_dbs.sql:/docker-entrypoint-initdb.d/create_additional_dbs.sql
ses-local:
build:
context: ./misc/ses-v2-local
dockerfile: Dockerfile
ports:
- "127.0.0.1:4566:4566"
networks:
- main
app:
build: .
networks:
- main
env_file: .env
environment:
DATABASE_URL: postgres://accounts:password@postgres:5432/postgres?sslmode=disable
AWS_ENDPOINT: http://ses-local:4566
depends_on:
- postgres
- ses-local
restart: on-failure
ports:
- "127.0.0.1:8080:8080"