-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-aws.yml
73 lines (67 loc) · 1.52 KB
/
docker-compose-aws.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
version: '3'
services:
nginx:
container_name: the-pong_nginx
build:
context: ./nginx
dockerfile: Dockerfile.aws
restart: unless-stopped
ports:
- 80:80
- 443:443
depends_on:
- backend
- postgres
networks:
- the-pong-net
environment:
- TZ=Asia/Seoul
postgres:
image: postgres:15-alpine
container_name: the-pong_postgres
restart: unless-stopped
networks:
- the-pong-net
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
backend:
container_name: the-pong_backend
build: ./backend
restart: unless-stopped
networks:
- the-pong-net
depends_on:
- postgres
environment:
CLIENT_APP_URL: ${PUBLIC_URL}
SALT_ROUNDS: ${SALT_ROUNDS}
CURSOR_SECRET: ${CURSOR_SECRET}
JWT_SECRET: ${JWT_SECRET}
DATABASE_URL: ${DATABASE_URL}
GOOGLE_ID: ${GOOGLE_ID}
GOOGLE_SECRET: ${GOOGLE_SECRET}
GOOGLE_CB: ${GOOGLE_CB}
volumes:
- backend-uploads:/usr/src/app/uploads
frontend:
container_name: the-pong_frontend
build:
context: ./frontend
dockerfile: Dockerfile.aws
restart: unless-stopped
networks:
- the-pong-net
environment:
PUBLIC_URL: ${PUBLIC_URL}
REACT_APP_API_URL: ${REACT_APP_API_URL}
depends_on:
- backend
networks:
the-pong-net:
volumes:
postgres:
backend-uploads: