diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2020-02-01 16:33:56 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2020-02-01 16:33:56 +0200 |
| commit | a5ae2653d8ccdaf00270c0c8c8a30b88d7955114 (patch) | |
| tree | bd265901dbda512fb1f6d717beb545234468d7ec /docker-compose.yml | |
| parent | fbf108595a00a7c9db5984158e4b02cc345b68d1 (diff) | |
Do stuff
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a52fa93 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,41 @@ +version: "3.7" + +services: + db: + image: postgres:12-alpine + tty: true + environment: + POSTGRES_PASSWORD: postgres + ports: + - 5432:5432 + volumes: + - dbdata:/var/lib/postgresql/data + + backend: + build: backend + tty: true + environment: + DATABASE_HOST: db + DATABASE_DB: postgres + DATABASE_USER: postgres + DATABASE_PASSWORD: postgres + ports: + - 4000:4000 + volumes: + - ./backend/src:/app/src + - ./backend/migrations:/app/migrations + depends_on: + - db + + frontend: + build: frontend + tty: true + environment: + REACT_APP_API_BASE_URL: http://localhost:4000 + ports: + - 3000:3000 + volumes: + - ./frontend/src:/app/src + +volumes: + dbdata: |
